BindingSource::SortDescriptions Property


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

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

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

property ListSortDescriptionCollection^ SortDescriptions {
	virtual ListSortDescriptionCollection^ 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