Skip to main content

GridColumn.AutoFilterCondition Property

Gets or sets the comparison operator used to create filter conditions for the current column via the auto-filter panel. This is a bindable property.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

[XtraSerializableProperty]
public AutoFilterCondition AutoFilterCondition { get; set; }

Property Value

Type Description
AutoFilterCondition

An AutoFilterCondition enumeration value that specifies the type of the comparison operator.

Available values:

Name Description
Like

The Like comparison operator selects records whose values in the corresponding column start with the entered string.

Equals

The Equals comparison operator selects records whose values in the corresponding column match the entered value.

Contains

The Contains operator selects records whose values in the corresponding column contain the entered string.

Default

For text and number columns as well as for date columns being filtered by their display text (the GridColumn.ColumnFilterMode property is set to ColumnFilterMode.DisplayText), the Like comparison operator is used as the default to create filter conditions. For other columns, the Equals comparison operator is used.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

When an end-user types text within the auto-filter panel’s cell, a filter condition is created based upon the text entered. This filter is then applied to the grid. The comparison operator used in this filter condition is determined by the column’s AutoFilterCondition property.

See Also