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

How to sort a GridControl programmatically?

Hi,

Can anyone tell me as to how to sort a GridControl (and not GridGroupingControl or GridDataBoundGrid)? I have the field name and I would like to sort the grid on it.

Hoping for your help,
Thanks and regards,
Nihar.


1 Reply

JJ Jisha Joy Syncfusion Team July 20, 2011 07:02 AM UTC

Hi Nihar,

Please refer to the following browser sample that implements sorting in GridControl. This sample will show you how to implement header-click sorting in your grid. The header cell draws a sort icon to indicate that the column has been sorted in a particular direction.

\Windows\Grid.Windows\Samples\2.0\MS Excel-Style Features\Grid Control Sort Demo\cs

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon