Back to Devexpress

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

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotfieldvalueeventargsbase-1-dot-getfieldvalue-x28-0-system-dot-int32-x29.md

latest3.4 KB
Original Source

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

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

Declaration

csharp
public object GetFieldValue(
    T field,
    int cellIndex
)
vb
Public Function GetFieldValue(
    field As T,
    cellIndex As Integer
) As Object

Parameters

NameTypeDescription
fieldT

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

TypeDescription
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):

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

PivotGridFieldBase

Data Area

XtraPivotGrid.PivotFieldValueEventArgsBase

XtraPivotGrid.PivotFieldValueEventArgsBase

PivotFieldValueEventArgsBase<T> Class

PivotFieldValueEventArgsBase<T> Members

DevExpress.XtraPivotGrid Namespace