Back to Devexpress

TcxCustomGridRecord.Values Property

vcl-cxgridcustomtableview-dot-tcxcustomgridrecord.md

latest1.9 KB
Original Source

TcxCustomGridRecord.Values Property

Provides indexed access to data item values.

Declaration

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

Property Value

TypeDescription
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

TcxCustomDataController.DisplayTexts Property

TcxCustomDataController.Values Property

TcxCustomGridRecord.DisplayTexts Property

TcxCustomGridRecord.ValueCount Property

TcxCustomGridRecord Class

TcxCustomGridRecord Members

cxGridCustomTableView Unit