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

Can you do a double sort in a grid control like excel

Thread ID:





25634 Mar 2,2005 05:04 PM UTC Mar 2,2005 05:49 PM UTC WinForms 1
Tags: GridControl
Adrian Lin
Asked On March 2, 2005 05:04 PM UTC

I basically need sort one column and then that data get sorted by another column e.g.: Before Sort ID Date 3 1/1/2003 1 10/12/2005 1 12/10/2005 2 1/21/2005 After Sort: ID Date 1 12/10/2005 1 10/12/2005 2 1/21/2005 3 1/1/2003 so we sorted by ID first then date. Any help would be great.

Administrator [Syncfusion]
Replied On March 2, 2005 05:49 PM UTC

Take a look at the \Syncfusion\Essential Suite\\Windows\Grid.Windows\Samples\Quick Start\GridControlSort sample. It shows how you can use a custom comparer to sort a column. In your case, when you sorted the primary column, your custom comparer would check if the sort keys are equal. If so, you would then base the comparision on your secondary key.


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