Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
System.Windows.Data
 CustomFilter Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
BindingListCollectionView..::.CustomFilter Property

Gets or sets a custom filter.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Visual Basic
Public Property CustomFilter As String
    Get
    Set
C#
public string CustomFilter { get; set; }
Visual C++
public:
property String^ CustomFilter {
    String^ get ();
    void set (String^ value);
}
F#
member CustomFilter : string with get, set
XAML Attribute Usage
<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.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker