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

TcxCustomDataController.SetValue(Integer,Integer,Variant) Method

Sets record values within a data controller.

#Declaration

Delphi
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