SortableBindingListTApplySortCore Method

Sorts the items of the list.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
protected override void ApplySortCore(
	PropertyDescriptor? property,
	ListSortDirection direction
)

Parameters

property  PropertyDescriptor
A PropertyDescriptor that specifies the property to sort on. If , then the list will be sorted by the values of T rather than one of its properties.
direction  ListSortDirection
The desired direction of the sort.

Remarks

The sorting does not change the order of the items in the wrapped underlying collection.

If property is not , then finding an item by the Find overloads on the same property will be also faster.

Exceptions

ArgumentOutOfRangeExceptiondirection is not of the supported values.

See Also