Data Binding

BindingList is a generic implementation if IBindingList and is very useful for data binding

You can implement sorting on a BindingList by overriding the SupportSortingCore and ISortedCore properties and the ApplySortCore and RemoveSortCode methods.

ApplySortCore method is where you need to provide the actual sorting details
This method takes a PropertyDescriptor object that identifies the list item property to sort by and a ListSortDescription enumeration that indicates whether the list should be sorted in ascending or descending order

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext