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

GridGroupingControl - GroupSortOrder

Thread ID:





45661 Jun 26,2006 07:52 PM UTC Jun 26,2006 08:31 PM UTC WinForms 1
Tags: GridControl
Clive Hill
Asked On June 26, 2006 07:52 PM UTC

Hi, I am not displaying my group drop area, and therefore cannot double click on this to change the direction of the group sorting. How can I change this programmatically from ascending to descending? There didn''t seem to be an obvious property for this. Thanks.

Administrator [Syncfusion]
Replied On June 26, 2006 08:31 PM UTC

Hi Vito, you need to use the TableDescriptor.GroupedColumns collection for adding the new group with sort direction/ changing the existing group sort direction. Here is a code snippet. //For adding the Group with sort direction. this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("parentID",ListSortDirection.Descending); //For changing the Sort Direction of the Existing Group. this.gridGroupingControl1.TableDescriptor.GroupedColumns["parentID"].SortDirection = ListSortDirection.Ascending; Let me know if this helps. Best Regards, Haneef


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

This page will automatically be redirected to the 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