Articles in this section
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)

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied