Category / Section
How to clear the sorted columns?
1 min read
To clear the sorted columns of the GridGroupingControl the Clear method of the SortedColumns has to be invoked. Please refer the below code snippet which illustrates this:
To clear all the sorted columns:
C#
this.GridGroupingControl1.TableDescriptor.SortedColumns.Clear();
VB
Me.GridGroupingControl1.TableDescriptor.SortedColumns.Clear()
To clear sorting of a particular column:
C#
this.GridGroupingControl1.TableDescriptor.SortedColumns.RemoveAt(0);
VB
Me.GridGroupingControl1.TableDescriptor.SortedColumns.RemoveAt(0)