HA
haneefm
Syncfusion Team
October 3, 2007 05:03 PM UTC
Hi Patrick,
By default the multi column sort by Ctrl+Left Button Mouse Click is enabled. To enable/disable the multi column sort the AllowMultiColumnSort property must be set to true/false. Below is a code.
this.gridGroupingControl1.TableOptions.AllowMultiColumnSort = false;
From code to sort several columns, you add the columns the grid.TableDescriptor.SortedColumns collection.
this.gridGroupingControl1.TableDescriptor.SortedColumns.AddRange( new SortColumnDescriptor[ ]
{
new SortColumnDescriptor(colName1, ListSortDirection.Ascending),
new SortColumnDescriptor(colName2, ListSortDirection.Descending),
new SortColumnDescriptor(colName3, ListSortDirection.Ascending)
});
Best regards,
Haneef