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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid control sorting

Thread ID:





90745 Oct 15,2009 07:25 AM UTC Oct 20,2009 10:09 AM UTC WinForms 3
Tags: GridControl
Asked On October 15, 2009 07:25 AM UTC

Hi, everyone

I'd like to know if I can sort columns in Syncfusion's Grid control in the same way I can do it with Microsoft's datagridview: grd.Sort(clm, ComponentModel.ListSortDirection.Ascending)

Thanks in advance and have a good day :)

Lingaraj S [Syncfusion]
Replied On October 19, 2009 12:51 PM UTC

Hi Allon,

Thank you for your interest in Syncfusion products.

The GridControl does not have default property to sort the columns with column header and by methods. However It can be achieved with Data.SortByColumn method in GridControl. In that method the IComparer object is used to sort the data's in GridControl. I have attached a sample that illustrates this better.

Refer the sample in below link, it demonstrate the Sorting in GridControl.

Please let me know if you have any queries.

Lingaraj S.

Replied On October 20, 2009 07:08 AM UTC

Lingaraj S., thanks a lot.

That was really helpful.


Lingaraj S [Syncfusion]
Replied On October 20, 2009 10:09 AM UTC

Hi Allon,

Thanks for the update.

Please let me know if it helps.

Lingaraj S.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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