I have a column with dates on it and I'm trying to sort it according to that.
I tried to use this but it only sorts by the first two digits, dd, and not with the full date.Code:DataGridView2.Columns("0").DefaultCellStyle.Format = "dd/mm/yy" DataGridView2.Sort(DataGridView2.Columns("0"), ListSortDirection.Descending)
I searched but couldn't find anything, any idea?
Thanks.




Reply With Quote