System.Windows.Forms.BindingSource.ApplySort Method

Sorts the data source using the specified property descriptor and sort direction.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public virtual void ApplySort (System.ComponentModel.PropertyDescriptor property, System.ComponentModel.ListSortDirection sort)

Parameters

property
A System.ComponentModel.PropertyDescriptor that describes the property by which to sort the data source.
sort
A System.ComponentModel.ListSortDirection indicating how the list should be sorted.

Remarks

The System.ComponentModel.IBindingList implements single column sorting using a System.ComponentModel.PropertyDescriptor to indicate a property to sort by and a System.ComponentModel.ListSortDirection indicating whether the property contents should be sorted in ascending or descending order.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0