We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Turning off the old sort arrow on a column of a GridGroupingControl

Hi, I am performing a sort on a column. If i sort the column for the first time in ascending order, i can not perform another sort on the same column in descending order. How do i turn off the old sort arrow so that i can perform another sort on the same column. Thanks David

1 Reply

AD Administrator Syncfusion Team June 14, 2005 10:11 AM UTC

Here is a code snippet that will initially sort an unsorted column, or reverse the sort if the column is already sorted.
SortColumnDescriptor scd = this.gridGroupingControl1.TableDescriptor.SortedColumns["ParentDec"];
if(scd == null)
else if(scd.SortDirection == ListSortDirection.Ascending)
	scd.SortDirection = ListSortDirection.Descending;
	scd.SortDirection = ListSortDirection.Ascending;

Live Chat Icon For mobile
Up arrow icon