Skip to main content

TcxCustomGridRecord.Values Property

Provides indexed access to the values of items (fields) in a record.

Declaration

property Values[Index: Integer]: Variant read; write;

Property Value

Type
Variant

Remarks

The Values property allows you to read and write a value to a specific item (field) identified by the Index parameter in the current record. 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 text representation 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