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.
Unfortunately, activation email could not send to your email. Please try again.

Grid control sorting

Thread ID:





90745 Oct 15,2009 03:25 AM Oct 20,2009 06:09 AM Windows Forms 3
Tags: GridControl
Asked On October 15, 2009 03:25 AM

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 08:51 AM

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 03:08 AM

Lingaraj S., thanks a lot.

That was really helpful.


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

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.

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.