TcxCustomGridColumnOptions.FilterRowOperator Property
In This Article
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 |
---|---|
Tcx |
fo |
#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