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