vcl-cxgridcustomtableview-dot-tcxcustomgridrecord.md
Provides indexed access to data item values.
property Values[Index: Integer]: Variant read; write;
| Type | Description |
|---|---|
| Variant |
A field value.
|
The Values property allows you to read and write a value to a specific data item (field). The Index parameter identifies the position of the corresponding item within the View’s Items collection. You can obtain the item’s index by using the TcxCustomGridTableItem.Index property.
The number of values corresponding to items is determined by the ValueCount property. To return the display text string of a value, see the DisplayTexts property.
Note
Although you are able to set the actual value of a specific item in a record, use this ability for unbound Views only. In order to set values for data-aware Views, use the appropriate methods of the underlying data set instead.
See Also
TcxCustomDataController.DisplayTexts Property
TcxCustomDataController.Values Property
TcxCustomGridRecord.DisplayTexts Property