SortDescriptions Property

BindingSource.SortDescriptions Property


Gets the collection of sort descriptions applied to the data source.

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

public virtual ListSortDescriptionCollection SortDescriptions { get; }

Property Value

Type: System.ComponentModel.ListSortDescriptionCollection

If the data source is an IBindingListView, a ListSortDescriptionCollection that contains the sort descriptions applied to the list; otherwise, null.

If the list is not an IBindingListView, the SortDescriptions always returns null.

The ListSortDescriptionCollection is a read-only collection.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft