Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridColumnOptions.FilterRowOperator Property

Associates a column with a filter operator to be used for creating a filter condition based on the column’s filter row cell value.

#Declaration

Delphi
property FilterRowOperator: TcxFilterOperatorKind read; write; default foEqual;

#Property Value

Type Default
TcxFilterOperatorKind foEqual

#Remarks

This property assigns its value (the associated filter operator) to the View’s ViewData.FilterRow.Operators property, referencing the column by its index.

The following code example shows how to associate the > filter operator (‘GREATER THAN’) with the TableViewOrderID column and create a ‘> 10’ (‘GREATER THAN 10’) filter condition based on it.

Delphi
<TableView>.FilterRow.OperatorCustomization := True;
TableViewOrderID.Options.FilterRowOperator := foGreater;
<TableView>.ViewData.FilterRow.Values[TableViewOrderID.Index] := 10;

Alternatively, you can use the View’s ViewData.FilterRow.Operators property. Refer to its description for a code example that produces the same result.

The default value of the FilterRowOperator property is foEqual.

See Also