Skip to main content

DataControlBase.FilterCriteria Property

Gets or sets the grid’s filter criteria. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

[Browsable(false)]
public CriteriaOperator FilterCriteria { get; set; }

Property Value

Type Description
CriteriaOperator

A CriteriaOperator object which represents filter criteria.

Remarks

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

To obtain a filter applied to a column, use the DataControlBase.GetColumnFilterCriteria method. To apply a filter to a column(s) preserving the grid’s filter (if applied), use the DataControlBase.MergeColumnFilters method. To clear the required column’s filter, use the DataControlBase.ClearColumnFilter method.

To learn more, see Filtering in Code.

See Also