BindingSource::ApplySort Method (ListSortDescriptionCollection^)
.NET Framework (current version)
Sorts the data source with the specified sort descriptions.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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
Available since 2.0
Show: