FastBindingListTApplySort(PropertyDescriptor, ListSortDirection) Method

Sorts the list based on the specified property and direction.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public void ApplySort(
	PropertyDescriptor property,
	ListSortDirection direction
)

Parameters

property  PropertyDescriptor
A PropertyDescriptor instance to sort by.
direction  ListSortDirection
The desired direction of the sort.

Implements

IBindingListApplySort(PropertyDescriptor, ListSortDirection)

Remarks

To customize the behavior override the ApplySortCore method in a derived class.

  Note

In this overload property cannot be . To sort by the values of T rather than one of its properties use the ApplySort(ListSortDirection) overload.

Exceptions

NotSupportedExceptionSupportsSortingCore returns .
ArgumentNullExceptionproperty is .
ArgumentExceptionproperty is not a property of T.

See Also