BindingSource.RemoveSort Method ()

 
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.

Removes the sort associated with the BindingSource.

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

public virtual void RemoveSort()

Exception Condition
NotSupportedException

The underlying list does not support sorting.

The RemoveSort method refers the request to the underlying list's IBindingList.RemoveSort method. Only lists that implement IBindingList support sorting.

By default, a call to this method is equivalent to setting the Sort property to null.

.NET Framework
Available since 2.0
Return to top
Show: