BindingSource.RemoveFilter 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 filter associated with the BindingSource.

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

public virtual void RemoveFilter()

Exception Condition
NotSupportedException

The underlying list does not support filtering.

The RemoveFilter method refers the request to the underlying list's IBindingListView.RemoveFilter method. Only lists that implement IBindingListView support filtering.

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

.NET Framework
Available since 2.0
Return to top
Show: