GridDataBoundGrid hidden column sort

It is possible to have a primary & secondary sort on this grid?

The primary sort will based on a hidden column and secondary sort will be the column which the user clicked on the column header. Hence, displays ASC/DESC arrow on the visible secondary sort column.


1 Reply

JJ Jisha Joy Syncfusion Team June 29, 2011 11:16 AM UTC

Hi,

Thank you for using Syncfusion products.

You can achieve the desired behavior by adding the necessary column to the SortedColumns collections,

this.gridGroupingControl1.TableDescriptor.SortedColumns.Add("Id");
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("Id");
this.gridGroupingControl1.TableDescriptor.SortedColumns.Add("Values");

Please find the attached sample.

Regards,
Jisha





GCCSorting_acea7dfe.zip

Loader.
Up arrow icon