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.
Up arrow icon