Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
990
WebDataGrid sorting strings as DateTime values
posted

In my WebDataGrid v12.2, i bind it to a datatable with columns of type String.  In the Columnsorted event I implement a custom sort on the underlying datatable so i can sort on a column of type String but the values in each row represent DateTimes.  the underlying datatable is sorted correctly, however, when i rebind it to the webdatagrid, the datagrid shows the rows sorted by the string values instead of the true DateTime values that they represent, resulting in an incorrect sort.

How can i force the webdatagrid to display the rows in the datatable in their correct order?