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

Resort Groups by Caption Title

Thread ID:

Created:

Updated:

Platform:

Replies:

77956 Nov 21,2008 03:33 PM UTC Dec 4,2008 11:12 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 21, 2008 03:33 PM UTC

The following sorts groups by a summary column. How do I sort by the Group Caption itself?

myGrid.TableDescriptor.GroupedColumns(0).SetGroupSummarySortOrder(myGrid.TableDescriptor.SummaryRows(0).SummaryColumns(0).GetSummaryDescriptorName, "Sum", sortDirection)



Rajadurai C [Syncfusion]
Replied On November 24, 2008 01:18 PM UTC

Hi DietzMJ,

Thanks for your interest in Syncfusion products.

Normally, when a table is grouped by a column, the table get sorted by the grouped column name which will be in the caption title (provided no columns in the sortedColumns list).

Hence to resort the groups which are sorted by summary column back to caption title.
1)Clear the sorted columns list.

this.gridGroupingControl1.TableDescriptor.SortedColumns.Clear();


This clears all the sorted columns present in list and shows sorted by caption title by default.

Regards,
Rajadurai


Administrator [Syncfusion]
Replied On December 3, 2008 09:43 PM UTC

That doesn't clear any sorts done with the GroupedColumns(i).SetGroupSummarySortOrder() function. How do we clear that as well?


Rajadurai C [Syncfusion]
Replied On December 4, 2008 11:12 AM UTC

Hi dietzMJ,

Thanks for your update.

In this function, the sort order is set through the grouped column. As there is no direct property to clear this sort order without affecting grouped column, you have to remove this grouped column to reset this sort behavior.

Regards,
Rajadurai


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

;