Skip to main content

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.v24.2.Core.dll

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

#Declaration

public object GetFieldValue(
    T field,
    int cellIndex
)

#Parameters

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.

#Returns

Type Description
Object

An object that specifies the field value.

#Remarks

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

CellIndexes

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