BindingSource.ApplySort Method (ListSortDescriptionCollection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: