KGy SOFT

SortableBindingListTApplySortCore Method

KGy SOFT Core Libraries Help
Sorts the items of the list.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.1
Syntax

protected override void ApplySortCore(
	PropertyDescriptor? property,
	ListSortDirection direction
)

Parameters

property
Type: System.ComponentModelPropertyDescriptor
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
Type: System.ComponentModelListSortDirection
The desired direction of the sort.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptiondirection is not of the supported values.
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.

See Also

Reference