TcxCustomGridRecord.Values Property
Provides indexed access to data item values.
Declaration
property Values[Index: Integer]: Variant read; write;
Property Value
Type | Description |
---|---|
Variant | A field value. |
Remarks
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