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

sorting column

Thread ID:

Created:

Updated:

Platform:

Replies:

42928 Apr 10,2006 02:46 PM UTC Apr 11,2006 01:56 PM UTC Windows Forms 1
loading
Tags: GridControl
Fady Sayegh
Asked On April 10, 2006 02:46 PM UTC

hi to all, i''m using the gridControl object, how can i make a sort on all my columns (ascending and descending). best regards and thanks in advance fady sayegh

Administrator [Syncfusion]
Replied On April 11, 2006 01:56 PM UTC

Hi Fady, Single Column Sorting : You can sort columns using SortByColumn method in this.grid.Data. Refer to this browser sample : GridControlSort ( \\windows\Grid.Windows\Samples\Quick Start\GridControlSort ) for more details. MultiColumn Sorting : To sort on multiple columns, you would need to derive a Comparer class that compares things using your primary column. When they are equal, you need to compare your secondary columns, and so on until you run out of columns to compare or your comparison does not match. For a sample, refer to this forum thread : MultiColumnSort_GridControl Best regards, Madhan

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.

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

;