FastBindingListTApplySort(String, ListSortDirection) Method

Sorts the list based on the specified propertyName and direction.

Definition

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

Parameters

propertyName  String
A property name of T to sort by.
direction  ListSortDirection
The desired direction of the sort.

Remarks

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

  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.

Exceptions

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

See Also