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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column sorting behaviour

Thread ID:





10096 Jan 22,2004 09:44 AM UTC Jan 22,2004 12:48 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 22, 2004 09:44 AM UTC

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

Administrator [Syncfusion]
Replied On 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, Syncfusion\Essential Suite\Grid\Samples\DataBound\DataBoundSortByDisplayMember, does something of this nature, changing the default sorting.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon