ViewFilter.NonColumnFilter Property

Gets or sets a filter expression that is not associated with any column.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v21.1.dll


public string NonColumnFilter { get; set; }

Property Value

Type Description

A string that specifies a filter expression, not associated with any column, which is applied to the current View .


You can associate a filter expression with any column using its GridColumn.FilterInfo property. An end-user can clear or modify such a filter by using the column’s filter dropdown. The filter expression assigned to the NonColumnFilter property cannot be modified using filter dropdowns of the View’s columns.

Using the NonColumnFilter property doesn’t prevent you from assigning column filters via filter dropdowns.


The following example shows how to assign a filter to a View using the ViewFilter.NonColumnFilter property.

gridView1.ActiveFilter.NonColumnFilter = "UnitPrice > 10 AND Discount > 0.05";
See Also