Note
FastBindingListT throws a NotSupportedException for this method. Use the SortableBindingListT to be able to use sorting.
public void ApplySort(
string propertyName,
ListSortDirection direction
)
Public Sub ApplySort (
propertyName As String,
direction As ListSortDirection
)
public:
void ApplySort(
String^ propertyName,
ListSortDirection direction
)
member ApplySort :
propertyName : string *
direction : ListSortDirection -> unit
To customize the behavior override the ApplySortCore method in a derived class.
NotSupportedException | SupportsSortingCore returns . |
ArgumentNullException | propertyName is . |
ArgumentException | propertyName has no corresponding PropertyDescriptor in T. |