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
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid
Declaration
Property Value
Type | Description |
---|---|
String | A string that specifies a filter expression, not associated with any column, which is applied to the current View . |
Remarks
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.
Example
The following example shows how to assign a filter to a View using the ViewFilter.NonColumnFilter
property.
gridView1.ActiveFilter.Clear();
gridView1.ActiveFilter.NonColumnFilter = "UnitPrice > 10 AND Discount > 0.05";