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

sorting column

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

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon