Back to Devexpress

TableView.ShowCriteriaInAutoFilterRow Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-0fd6c1ad.md

latest3.9 KB
Original Source

TableView.ShowCriteriaInAutoFilterRow Property

Gets or sets whether to display the criteria selector buttons in the Automatic Filter Row.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool ShowCriteriaInAutoFilterRow { get; set; }
vb
Public Property ShowCriteriaInAutoFilterRow As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to display the criteria selector buttons in the Automatic Filter Row; otherwise, false.

|

Remarks

If the ShowCriteriaInAutoFilterRow property is set to true, users can specify a criteria type for each column in the Automatic Filter Row. If the ShowCriteriaInAutoFilterRow property is set to false, the filter criteria is BeginsWith.

To display the Filter Criteria Button for a column, set the ColumnBase.ShowCriteriaInAutoFilterRow property to true.

The GridControl changes the Automatic Filter Row‘s default filter criteria when you display the Filter Criteria Button :

BeginsWithApplies to string columns and columns with the ColumnBase.ColumnFilterMode property set to DisplayText.EqualsApplies to other column types (int, double, DateTime, bool, and so on).

Refer to the following help topic for more information: Automatic Filter Row.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowCriteriaInAutoFilterRow property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-display-datetime-value-in-separate-date-and-time-columns/CS/DateAndTimeColumns_Unbound/MainWindow.xaml#L29

xml
<dxg:GridControl.View>
    <dxg:TableView ShowAutoFilterRow="True" ShowCriteriaInAutoFilterRow="True" />
</dxg:GridControl.View>

See Also

Automatic Filter Row

AutoFilterCondition

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace