We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingControl custom group sorting

Using the GridGroupingContol, say I have three groups called 'Cheeses', 'Dogs' and 'Fruit', each group containing a number of records. These groups are displayed in alphabetical order. How can I control the display order of the groups to be non-alphabetical e.g. how to order the groups as
Dogs
Fruit
Cheeses

Can it be done?

1 Reply

AD Administrator Syncfusion Team February 8, 2007 07:42 PM UTC

Hi Stuart,

This can be achieved by having a custom comparer and specifying it to the particular GroupedColumn in GridTableDescriptor. This was shown in the sample code.

GridGroupingControl1.TableDescriptor.GroupedColumns[0].Comparer = new YourComparer();
GridGroupingControl1.TableDescriptor.GroupedColumns[0].Categorizer = new YourCategorizer();

Also refer this KB article:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=147

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon