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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - group one column, sort group using another column

Thread ID:

Created:

Updated:

Platform:

Replies:

92146 Dec 22,2009 09:21 PM UTC Dec 23,2009 09:07 AM UTC WinForms 1
loading
Tags: GridControl
Greg Kim
Asked On December 22, 2009 09:21 PM UTC

Is there a way to group on one column and then use the values in another column to sort the group?

For instance, if there is a Systems table with a SystemID column and a Rank column, the grouping would occur on SystemID and then Rank would determine the order the SystemID's would be displayed.

Systems

SystemID, Rank
SystemA, 2
SystemB, 1
SystemC, 3

So with the above data, if the sort was ascending, then the ggc would display:

SystemB, SystemA, SystemC

instead of:

SystemA, SystemB, SystemC

I added a Rank as a SortedColumn to the ggc but that did not work.

Thanks,
Greg

Lingaraj S [Syncfusion]
Replied On December 23, 2009 09:07 AM UTC

Hi Greg,

Thank you for your interest in Syncfusion products.

Please try using CustomerComparor in GridGroupingControl Sort/Grouped column to achieve your requirement as shown in attached sample.

Refer the sample from below link:
http://help.syncfusion.com//samples/Grid.Windows/GGCSamples/GGCGroup/main.htm

Please let me know if you have any queries.

Regards,
Lingaraj S.

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.

Warning Icon 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.Close Icon

;