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.
Up arrow icon