BindingSource.ApplySort Method (ListSortDescriptionCollection)

 

Sorts the data source with the specified sort descriptions.

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

public virtual void ApplySort(
	ListSortDescriptionCollection sorts
)

Parameters

sorts
Type: System.ComponentModel.ListSortDescriptionCollection

A ListSortDescriptionCollection containing the sort descriptions to apply to the data source.

Exception Condition
NotSupportedException

The data source is not an IBindingListView.

IBindingListView implements multi-column sorting as a set of property descriptor-direction pairs.

.NET Framework
Available since 2.0
Return to top
Show: