[]
Generic collection that supports data binding and advanced sorting (IBindingListView).
This class is especially useful to provide data for grids that use the GroupDescriptions property.
public class SortableBindingList<T> : BindingList<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, ICancelAddNew, IRaiseItemChangedEvents, IBindingListView, IBindingList, IList, ICollection, IEnumerable where T : class
| Name | Description |
|---|---|
| T | The type of elements in the list. |
| Name | Description |
|---|---|
| SortableBindingList() | Initializes a new instance of the SortableBindingList<T> class. |
| SortableBindingList(IList<T>) | Initializes a new instance of the SortableBindingList<T> class. |
| Name | Description |
|---|---|
| IsSortedCore | Gets a value that indicates whether the list is sorted. |
| SortDescriptions | Gets the collection of sort descriptions currently applied to the data source. |
| SortDirectionCore | Gets the direction in which the list is sorted. |
| SortPropertyCore | Gets the first property descriptor used for sorting the list. |
| SupportsAdvancedSorting | Gets a value that indicates whether the data source supports advanced sorting. |
| SupportsSortingCore | Gets a value that indicates whether the list supports sorting. |
| Name | Description |
|---|---|
| ApplySort(ListSortDescriptionCollection) | Sorts the data source based on the given ListSortDescriptionCollection. |
| ApplySortCore(PropertyDescriptor, ListSortDirection) | Sorts the items on the list based on a single property. |
| RemoveSortCore() | Removes any sorts currently applied to the list. |