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
close icon

Column sorting behaviour

I can sort a column by (double) clicking on the header. Is there a way to involve more than one column in sorting? Grateful in advance, Alexey

1 Reply

AD Administrator Syncfusion Team January 22, 2004 12:48 PM UTC

In the 2.0 GridGroupingControl, yes multicolumn sorting is supported. In the GridDataBoundGrid, the default sorting only sorts the single column. If you want multicolumn sorting, you would have to handle it yourself. You would turn off the default sorting with the SortBehavior property. Then handle CellDoubleClick and do the sorting there. To sort, you would get the DataView associated with your datasource (likely some dataTable1.DefaultView), and then set its Sort property to sort the columns you want. It is doable. The sample that ships with 1.6.1.8, Syncfusion\Essential Suite\Grid\Samples\DataBound\DataBoundSortByDisplayMember, does something of this nature, changing the default sorting.

Loader.
Live Chat Icon For mobile
Up arrow icon