ADAdministrator Syncfusion Team May 29, 2005 09:47 PM
Here is a sample that has a sorthelper class for use with a GridControl. It uses Comparer classes to implement the sorting.
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.
ADAdministrator Syncfusion Team May 29, 2005 10:34 PM
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.