Hello, I have Datatable like
Date Preferance
30/07/2011 0
02/03/2011 1
10/12/2011 2
01/12/2011 3
I am trying to sort prefenaces column as per date(Samllest date will get first prefenace),i am trying to get values in datatable like
Date Preferance
30/07/2011 1
02/03/2011 0
10/12/2011 3
01/12/2011 2
i am trying to sorts dates in datatable,
i have tried
Datatable.Select(filterExp, sortExp, DataViewRowState.CurrentRows)
and
Datatable.DefaultView.Sort = "ID ASC";
but both this are not working this method takes date as string
What to do for this,please help </pre>