Thanks Rajadurai.
I will try the first option for absolute and non-abs sorting.
For second option, unfortunately we have a huge datatable to which we bind the grid. So implementing a new data structure with IBindingList would not be feasible. I may try with DataView instead. i.e sorting on the dataview. If it works, I will post the way to achieve permanent sorting and temporary sorting together.
Thanks
Amit
>Hi Amit,
Thanks for your interest in Syncfusion products.
1) To sort data by absolute and non absolute values, you can make use of class implementing IComparer interface that compares two objects for sorting.
Please refer the following sample that shows ggc using custom comparer for sorting
http://www.syncfusion.com/Support/user/uploads/GGC_SortGroup_d3632c3f.zip2) If you want to disable sorting on changing values of the grid, then you need to use CustomSorting.
****************************************************************************************************************
The grid structures require to have the records always be sorted according to the sort order.
The only way you can get this working is if you do not let the grid engine do the sorting.
What you could do is have your own implementation of an IBindingList. This IBindingList should be filled with the data that you want to display in the grid.
You could then listen to the click event on the column header and then do a custom sorting yourself.
When you handle the sort you could then manually sort your list and after that raise a ListChangedType.Reset event so that the grid knows the records were changed.
You should not modify the grid SortColumns collection.
If you do it this way the grid will simply display the records in the order as they are in your custom list and when you change contents of a record or add a record it will not need to sorted.
It will however not work if you also require grouping columns...
Regards,
Rajadurai