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

Multi-Column sorting on a GridGroupingControl

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.

1 Reply

AD Administrator 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.

Loader.
Live Chat Icon For mobile
Up arrow icon