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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column sorting behaviour

Thread ID:

Created:

Updated:

Platform:

Replies:

10096 Jan 22,2004 09:44 AM UTC Jan 22,2004 12:48 PM UTC WinForms 1
loading
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 1.6.1.8, Syncfusion\Essential Suite\Grid\Samples\DataBound\DataBoundSortByDisplayMember, does something of this nature, changing the default sorting.

CONFIRMATION

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

;