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

Sorting not working

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

2 Replies

RR Ramya R Syncfusion Team August 16, 2007 09:22 AM UTC

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.


KB Kent Boogaart August 17, 2007 12:26 AM UTC

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/

Loader.
Live Chat Icon For mobile
Up arrow icon