This documentation is archived and is not being maintained.

BindingListCollectionView.CustomFilter Property

Gets or sets a custom filter.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public function get CustomFilter () : String 
public function set CustomFilter (value : String)
<object CustomFilter="string" .../>

Property Value

Type: System.String
A string that specifies how the items are filtered.

Use the CanCustomFilter property to test whether the view supports custom filtering before assigning a string to this property.

The syntax depends on the IBindingListView implementation. For an example of the supported filter expression syntax, see RowFilter.

Note that if you have multiple BindingListCollectionView objects and the underlying source is a DataTable or a DataView, the view objects do not sort or filter independently. For example, if you have two BindingListCollectionView objects associated with the same DataTable and you perform sorting on one of the views, the order of items in the other view can be affected. This is because BindingListCollectionView objects use the underlying IBindingList for sorting and filtering functionalities.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0