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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl custom group sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

56039 Feb 8,2007 12:51 PM Feb 8,2007 02:42 PM Windows Forms 1
loading
Tags: GridControl
Stuart Hallows
Asked On February 8, 2007 12:51 PM

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?

Administrator [Syncfusion]
Replied On February 8, 2007 02:42 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;