Hi Haneef
Thanks for solution , but my problem is not that you understand. my problem is " i have done sorting manually in my grid by my own code , but now i want to show sort icon on the grid when i click on grid "
so pl'z send me code regarding that.
Thanks
Gourav
>Hi Gourav,
The GridDataBoundGrid really does not do any sorting. It delegates the sorting to the IBindingList datasource. So, if you are using a DataTable as the grid's datasource, it is the dataTable.DefaultView that is doing the sorting. So, if you are seeing the dates being sorted like strings, it suggests that the type of this DataColumn in the DataTable is a string object and not a DateTime object. If this is the case, the simplest way to handle the problem would be to store the value as a DataTime and set GridBoundColumn.StyleInfo.Format to tell the grid to display the DateTime value with a particular format.
If this is not possible, then you would have to do some work to work around the string type being set in the datasource. Here is a forum thread that discusses a couple of ways to do this and has sample information. But changing the DataColumn type will be the simplest solution.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=21940Best regards,
Haneef