I have a datatable that has a date column, but I am stumped as to how to sort it by that column. Any suggestions?
+9
A:
DataView view = DataTable.DefaultView;
view.Sort = "DateColumn";
Andy Mikula
2009-02-05 00:12:21
That seems to sort it like a text field and not a date
Brad
2009-02-05 00:18:14
Is the column text?
Jason Jackson
2009-02-05 00:35:07
Yes it was...I changed it to DateTime
Brad
2009-02-05 00:50:56