tags:

views:

1074

answers:

1

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
That seems to sort it like a text field and not a date
Brad
Is the column text?
Jason Jackson
Yes it was...I changed it to DateTime
Brad