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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grouped by X, but sorting by Y

Thread ID:





76952 Sep 30,2008 08:20 PM UTC Oct 3,2008 10:40 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Grouping
Nicolas Chamero
Asked On September 30, 2008 08:20 PM UTC

Hello, I try to figure out, for two days an grouping issue.
I've a grouping with different columns, and I want to grouped by "regionname" column but i want to sort by "PatTotal".
When I call my grouping grid is working perfect, but when I expand the rows the sorting change, by regioname.
i want to keep the sorting by PatTotal.

Anybody know about this issue?

the code I using is:

SortColumnDescriptor gsd = new SortColumnDescriptor("RegionName");
gsd.SortDirection = ListSortDirection.Descending;
gsd.GroupSortOrderComparer = new PatTotalComparer(summaryColumn2.GetSummaryDescriptorName(), "Sum");

Rajarajeswari S [Syncfusion]
Replied On October 3, 2008 10:40 AM UTC

Hi Nicolas,

Thanks for using Syncfusion products.

Grouping a column will always sort the column. With SummaryInCaption, when you group a particular column, then the Grid is grouped and sorted based on the column. Now if you click on the other column (eg. EmployeeID) to sort, then the Grid will sort each group based on the column
(eg. EmployeeID). This is the default behavior of the control, and it works properly.

Please refer the sample from the below link, which illustrates this:


Please refer the video clip from the below link, illustrating the process clearly:


Please let me know if you have any other concerns.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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