[]
        
(Showing Draft Content)

C1.Win.FlexGrid.SortableBindingList-1

SortableBindingList<T> Class

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.

Inheritance
SortableBindingList<T>
Namespace: C1.Win.FlexGrid
Assembly: C1.Win.FlexGrid.8.dll
Syntax
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
Type Parameters
Name Description
T

The type of elements in the list.

Constructors

Name Description
SortableBindingList()

Initializes a new instance of the SortableBindingList<T> class.

SortableBindingList(IList<T>)

Initializes a new instance of the SortableBindingList<T> class.

Properties

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.

Methods

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.