System.ComponentModel.IBindingList.ApplySort Method

Sorts the list based on a System.ComponentModel.PropertyDescriptor and a System.ComponentModel.ListSortDirection.

Syntax

public void ApplySort (PropertyDescriptor property, ListSortDirection direction)

Parameters

property
The System.ComponentModel.PropertyDescriptor to sort by.
direction
One of the System.ComponentModel.ListSortDirection values.

Remarks

If items are added or removed, these items are placed in the order of the sort.

This method is supported if IBindingList.SupportsSorting is true; otherwise, this method throws a NotSupportedException.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0