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
#Parameters
Name | Type | Description |
---|---|---|
field | T | A Pivot |
cell |
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):
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”.