KGy SOFT

FastBindingListTApplySort Method (String, ListSortDirection)

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

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

public void ApplySort(
	string propertyName,
	ListSortDirection direction
)

Parameters

propertyName
Type: SystemString
A property name of T to sort by.
direction
Type: System.ComponentModelListSortDirection
The desired direction of the sort.
Exceptions

ExceptionCondition
NotSupportedExceptionSupportsSortingCore returns .
ArgumentNullExceptionpropertyName is .
ArgumentExceptionpropertyName has no corresponding PropertyDescriptor in T.
Remarks

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

Note Note
In this overload a property must be specified. To sort by the values of T rather than one of its properties use the ApplySort(ListSortDirection) overload.
See Also

Reference