Skip to main content

TcxCustomDataController.GetRowValue(TcxRowInfo,Integer) Method

Obtains the value for a particular row/item.

Declaration

function GetRowValue(const ARowInfo: TcxRowInfo; AItemIndex: Integer): Variant;

Parameters

Name Type
ARowInfo TcxRowInfo
AItemIndex Integer

Returns

Type
Variant

Remarks

Use the GetRowValue function to obtain the value of a particular row item. This method can be applied to potentially visible data records and grouping rows. Such rows can be accessed by row indexes.

A row is identified by the ARowInfo parameter. It specifies a TcxRowInfo object that you can obtain using the GetRowInfo function.

The AItemIndex parameter specifies the index of the item for which to return the value and identifies the position of the item within the collection of all items. In the ExpressQuantumGrid control, you can use the TcxCustomGridTableItem.Index property value for this parameter.

Note that if the ARowInfo parameter refers to a grouping row, the function returns the value of the corresponding grouping item and ignores the AItemIndex parameter.

Use the GetRowDisplayText function to return an item’s display text instead of the variant value.

The Values property can be used to return values of specific data records even if they are currently invisible because of an applied filter. This property does not allow you to return values of grouping rows because Values requires the record index as a parameter.

See Also