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
close icon

Sort column programatically

How to apply sort on column in gridgrouping control programatically...?

Any sample code lines?

1 Reply

AD Administrator Syncfusion Team February 1, 2007 03:00 PM UTC

Hi,

You can achieve this by adding the column in SortedColumns collection. The following is the code snippet

>>>>>>>>>>>>>>>>>>>>>>>>>>
GridTableDescriptor gd = this.gridGroupingControl1.GetTableDescriptor("TableName");
gd.SortedColumns.Add("ColumnName",ListSortDirection.Descending);
>>>>>>>>>>>>>>>>>>>>>>>>>>

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon