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 in GridControl

Hello! 1. Can I sort a column by clicking at its header? 2. Is there anyway to define default sorting? Thanx in advance. Maqsood Ahmed Kolachi Advanced Technologies http://www.kolachi.net

1 Reply

AD Administrator Syncfusion Team December 31, 2004 06:00 AM UTC

Take a look at the Grid\Samples\Quick Start\GridControlSort sample. It shos ho you can add some code to your project to support sorting in a GridControl. To do custom sorting you need an object that implements IComparer to define your object comparisons. The SortByColumn call used in the above referenced sample accepts an IComparer object to allow for custom sorting.

Loader.
Live Chat Icon For mobile
Up arrow icon