This question is locked. New answers and comments are not allowed.
I ran into some problems while trying to implement a custom sorting option on my custom column class. I've extended the GridViewDataColumn class and in order to make my column sortable I have overridden "CanSort()" method to always return true.
The point is, I only want to use the UI functionality of the grid, but then I want to intercept the "Sorting" event, do my custom sorting server side, and cancel the grid's "sorting" implementation.
This is all well until I get get the exception saying my data must implement IComparable, and that is a problem for me, because I use some dynamic data as a grid's source and cannot implement IComparable. Also, because I only want to catch sorting event, and not use the logic behind it, I hope I can somehow overcome this problem. Can I?