KGy SOFT

FastBindingListTApplySort Method (PropertyDescriptor, ListSortDirection)

KGy SOFT Core Libraries Help
Sorts the list based on the specified property and direction.

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

public void ApplySort(
	PropertyDescriptor property,
	ListSortDirection direction
)

Parameters

property
Type: System.ComponentModelPropertyDescriptor
A PropertyDescriptor instance to sort by.
direction
Type: System.ComponentModelListSortDirection
The desired direction of the sort.

Implements

IBindingListApplySort(PropertyDescriptor, ListSortDirection)
Exceptions

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

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

Note 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.
See Also

Reference