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

TcxCustomGridRecord.Values Property

Provides indexed access to data item values.

#Declaration

Delphi
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