Skip to main content
All docs
V26.1
  • FilterBehavior.FilterString Property

    Gets or sets a string that is the filter expression applied to the FilterBehavior.

    Namespace: DevExpress.Xpf.Core.FilteringUI

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public string FilterString { get; set; }

    Property Value

    Type Description
    String

    A string that is the filter expression applied to the FilterBehavior.

    Remarks

    Run Demo: FilterBehavior

    Use the FilterString / FilterCriteria property to create a filter expression that consists of multiple conditions applied to multiple columns, and apply it to the FilterBehavior. Setting the FilterString / FilterCriteria property to a new value clears any filters that have been previously applied.

    <dxfui:FilterBehavior x:Name="filterBehavior" FilterString="[Year] >= 2014 And Sales > 1"
                          ItemsSource="{Binding ElementName=chart, Path=DataSource}">
        <!-- -->
    </dxfui:FilterBehavior>
    

    Use the ActualFilterCriteria property to get the filter criteria created by the FilterBehavior. You can assign this filter criteria to a data-bound control’s filter criteria or use it to filter your data in code.”

    See Also