PivotCustomDrawCellBaseEventArgs.GetCellValue(Object[], Object[], PivotGridField) Method
Returns a cell value calculated for the specified column and row field values, against the specified data field.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
public object GetCellValue(
object[] columnValues,
object[] rowValues,
PivotGridField dataField
)
#Parameters
Name | Type | Description |
---|---|---|
column |
Object[] | An array of column values. |
row |
Object[] | An array of row values. |
data |
Pivot |
A Pivot |
#Returns
Type | Description |
---|---|
Object | A summary value calculated for the specified column and row field values, against the specified data field. |
#Remarks
The GetCellValue method returns null (Nothing in Visual Basic) in the following instances:
- the specified field is null (Nothing in Visual Basic);
- the specified field is not a Data Field;
- the specified field is hidden (its PivotGridFieldBase.Visible property is set to false).
Consider the pivot grid displayed in the image below.
The following table illustrates how to use the GetCellValue method to obtain specific cell values.
Cell | C# | Visual Basic |
---|---|---|
Red | e. |
e. |
Green | e. |
e. |
Blue | e. |
e. |
Note
If you call the Get