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:

Created:

Updated:

Platform:

Replies:

90745 Oct 15,2009 03:25 AM Oct 20,2009 06:09 AM Windows Forms 3
loading
Tags: GridControl
Allon
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 :)
Allon

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.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/Forums/GridSort.zip

Please let me know if you have any queries.

Regards,
Lingaraj S.

Allon
Replied On October 20, 2009 03:08 AM

Lingaraj S., thanks a lot.

That was really helpful.

Regards,
Allon

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

Hi Allon,

Thanks for the update.

Please let me know if it helps.

Regards,
Lingaraj S.

CONFIRMATION

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.

;