Datagrid sorting of date field

ny3ranger

Member
Joined
Feb 25, 2005
Messages
5
Programming Experience
1-3
Anyone ever sort a datagrid datetime field chronologically instead of alphabetically?

I have no idea how to do this. Any help would be appreciated.
 
If you have a DataGrid bound to a column that is type DateTime then it will be sorted chronologically. If it is being sorted alphabetically then it must contains String objects, not Date objects. If you want to work with dates then use Date objects. NEVER convert Dates to Strings if it can possibly be avoided.
 
Back
Top