GridGroupingControl - GroupSortOrder

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.

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Up arrow icon