AD
Administrator
Syncfusion Team
May 30, 2005 02:47 AM UTC
Here is a sample that has a sorthelper class for use with a GridControl. It uses Comparer classes to implement the sorting.
http://www.syncfusion.com/Support/user/uploads/SortRows_a527b4f5.zip
To sort on multiple columns, you would need to derive a Comparer class that compares things using your primary column. When they are equal, you need to compare your secondary columns, and so on until you run out of columns to compare or your comparison does not match.
AD
Administrator
Syncfusion Team
May 30, 2005 03:34 AM UTC
The sample above sorts rows instead of columns. Here is the same sample tweaked to sort columns, and to multiple sort column 2 and 3.
http://www.syncfusion.com/Support/user/uploads/SortRows_d75819bd.zip