Value: Variant;
The Value property determines the constraint value.
On setting the constraint in this property the type is defined and the constraint value for this type is converted.
Executing the example requires a form with the Button1 button, the DataGrid component named DataGrid1 and the UiDataSource component that is a data source for the DataGrid.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
filter: ITableFilter;
filterItem: ITableFilterItem;
cond1, cond2: ITableFilterCondition;
Begin
filter := DataGrid1.TableFilter;
filterItem := filter.Item(0);
cond1 := filterItem.Conditions.Add;
cond1.Condition := FilterCondition.Less;
cond1.Value := 6;
cond1.Relation := FilterRelation.And_;
cond2 := filterItem.Conditions.Add;
cond2.Condition := FilterCondition.More;
cond2.Value := 2;
filterItem.State := FilterItemState.Condition;
End Sub Button1OnClick;
On pressing the Button1 button, the first column is filtered. The filtration is performed by 6 and 2.
See also: