TcxCustomDataController.SetValue(Integer,Integer,Variant) Method
Sets record values within a data controller.
Declaration
procedure SetValue(ARecordIndex: Integer; AItemIndex: Integer; const Value: Variant); virtual;
Parameters
Name | Type |
---|---|
ARecordIndex | Integer |
AItemIndex | Integer |
Value | Variant |
Remarks
Use the SetValue method to change the data controller’s record values programmatically.
The ARecordIndex and AItemIndex parameters specify the record and the field where to change the value. The record is specified by its index while the field is specified by the index of the corresponding item (a Table View column, a card row, etc).
The value to be assigned should be passed as the Value parameter.
To change data directly in the underlying dataset, use the SetEditValue method instead.
See Also