The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator 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