I have a small problem. I need to sort data in the DataGridView (WinForms application) in descending order. I apply a DataView as DataSource to myGrid:
DataView view = myDataTable.DefaultView;
view.Sort = "id DESC";
myGrid.DataSource = view;
id column is string data type, and is in ##/yy format. First part is incrementing integer, second part (after '/') is last two digits of current year. Unfortunately it has to be in this format.
After sortting it returns in this order:
9/14,8/14,7/14,6/14,5/14,4/14,3/14,2/14,10/14,1/14...
But it should be like this:
10/14,9/14,8/14,7/14,6/14,...
What would be the easiest way to solve this? Thank you.
EDIT: Added some more info...