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.

Sorting not working

Thread ID:

Created:

Updated:

Platform:

Replies:

67368 Aug 16,2007 12:12 AM Aug 16,2007 08:26 PM Windows Forms 2
loading
Tags: GridControl
Kent Boogaart
Asked On August 16, 2007 12:12 AM

Hi,

Is there something special I have to do in order to get sorting working on a data bound grid?

The grid is bound to business objects, not a DataTable. I've tried both the single- and double-click options, but neither do anything when the column is clicked.

Thanks

Ramya R [Syncfusion]
Replied On August 16, 2007 05:22 AM

Hi,

Thank you for your interest in Syncfusion Products.

Inorder to have support for sorting columns, your DataSource must support IBindingList in order to get the built-in sorting within GridDataBoundGrid. In particular to hook up sorting, you have to implement IBindingList.AllowSorting property and an IBindingList.ApplySort method (in addition to the other interface members).

Please let me know if you have any queries.

Thanks & Regards,
Ramya.

Kent Boogaart
Replied On August 16, 2007 08:26 PM

Thanks, I forgot BindingList doesn't support sorting by default, nor is there an implementation with the BCL. Therefore, I used this one: http://www.timvw.be/presenting-the-sortablebindinglistt/

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.

;