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

Sorting not working

Thread ID:





67368 Aug 16,2007 04:12 AM UTC Aug 17,2007 12:26 AM UTC WinForms 2
Tags: GridControl
Kent Boogaart
Asked On August 16, 2007 04:12 AM UTC


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.


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


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,

Kent Boogaart
Replied On 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/


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