Skip to main content

DataControlBase.FilterCriteria Property

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

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "OnFilterCriteriaChanged")]
public CriteriaOperator FilterCriteria { get; set; }

Property Value

Type
CriteriaOperator

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. When you set the FilterCriteria property to a new value, the GridControl clears previously applied filters.

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

For more information, refer to the following help topic: Filter Data in Code.

See Also