A newer version of this page is available. Switch to the current version.

PivotFieldValueEventArgsBase<T>.GetFieldValue(T, Int32) Method

Returns the specified column or row field value for the cell, addressed by its zero-based index in the Data Area.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.1.Core.dll


public object GetFieldValue(
    T field,
    int cellIndex


Name Type Description
field T

A PivotGridFieldBase class descendant that specifies a column or row field, whose value is to be obtained.

cellIndex Int32

A zero-based cell index in the Data Area that specifies the required field value.


Type Description

An object that specifies the field value.


The following image shows cell indexes that enumerate rows (columns are numerated in the same manner):


Specific column/row field values contain nested field values. The indexes of the nested field values lie in the range [PivotFieldValueEventArgsBase<T>.MinIndex; PivotFieldValueEventArgsBase<T>.MaxIndex].

Consider the following calls to the GetFieldValue method for the control shown in the image above:

  • GetFieldValue(fieldCountry, 2) returns “Belgium”.
  • GetFieldValue(fieldCountry, 3) returns “Belgium”.
  • GetFieldValue(fieldCity, 3) returns “Charleroi”.
  • GetFieldValue(fieldCountry, 4) returns “Belgium”.
See Also