corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotfieldvalueeventargsbase-1-dot-getfieldvalue-x28-0-system-dot-int32-x29.md
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
public object GetFieldValue(
T field,
int cellIndex
)
Public Function GetFieldValue(
field As T,
cellIndex As Integer
) As Object
| 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 |
|---|---|
| Object |
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:
See Also
XtraPivotGrid.PivotFieldValueEventArgsBase
XtraPivotGrid.PivotFieldValueEventArgsBase
PivotFieldValueEventArgsBase<T> Class