Hello All
I have subclassed the BindingList<T> class implementing IBindingListView to enable multi-column sorting. When I bind my collection to the grid everything works bar the sort. To enable sorting, I need to handle the columnsorted event and then call IBindingListView.ApplySort.
What am I missing ?
Thanks in advance
Hi,
Thank you for posting on our forums.
The WebDataGrid fully supports MutlipleColumn Sorting with a IBindingList DataSource. Instead of calling the ApplySort() method, I recommend using the WebDataGrid's Sorting behavior to enable multiple column sorting. After binding the WebDataGrid to your DataSource, enable the Sorting Behavior, and set the SortingMode property to Multi.
To learn more about Sorting, please review the following help topics:WebDataGrid Supported DataSourcesSorting BehaviorSortingMode PropertySortingMode Enum
Please let me know if you have any questions regarding this matter.
Hello,
I had set all the required properties required to enable sorting. When clicking on the column header, nothing would happen, hence the call to ApplySort. If I changed the datasource to a standard datatable, the sort would work automatically. It seems the sort call is failing. Any ideas ?
Please update this thread with your IBindingList implementation and I will be happy to review it to provide you with my suggestions.
I am looking forward to your update.
Please let me know if you're still encountering the sorting issue with your IBindingList implementation. If so, please attached a code snippet of your code implementation and I will be happy to review it.