I am using a GridGroupingControl and would like to do a multi column sort on the data. Does anyone know how this can be achieved.
All the avalailable information i''ve come across focuses on how this is achieved using GridControl and GridDataBoundGrid.
ADAdministrator Syncfusion Team June 13, 2005 05:37 AM
There is no UI for sorting multiple columns in a GridGroupingControl.
From code to sort several columns, you add the columns the grid.TableDescriptor.SortedColumns collection.
If you want a UI, you could handle TableControlCellClick event and manage the sorting yourself. For example, if the ctl-key is not pressed, clear the grid.TableDescriptor.SortedColumns collection before adding the clicked column. If is pressed, don''t clear it before adding the clicked column.