Skip to main content

PivotGridControl.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.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public object GetCellValue(
    object[] columnValues,
    object[] rowValues,
    PivotGridField dataField
)

Parameters

Name Type Description
columnValues Object[]

An array of column field values that identify the column where the cell resides.

rowValues Object[]

An array of row field values that identify the row where the cell resides.

dataField PivotGridField

A PivotGridField object that specifies the data field.

Returns

Type Description
Object

A summary value calculated for the specified column and row field values, against the specified data field.

Remarks

Consider the pivot grid displayed in the image below.

GetCellValue

The following table illustrates how to use the GetCellValue method to obtain specific cell values.

Cell C# Visual Basic
Red pivotGridControl.GetCellValue(new object[] {1996, 1}, new object[] {"Alice Mutton"}, fieldProductAmount); pivotGridControl.GetCellValue(New Object() {1996, 1}, New Object() {"Alice Mutton"}, fieldProductAmount)
Green pivotGridControl.GetCellValue(new object[] {1996}, new object[] {"Aniseed Syrup"}, fieldProductAmount); pivotGridControl.GetCellValue(New Object() {1996}, New Object() {"Aniseed Syrup"}, fieldProductAmount)
Blue pivotGridControl.GetCellValue(null, new object[] {"Boston Crab Meat"}, fieldProductAmount); pivotGridControl.GetCellValue(Nothing, New Object() {"Boston Crab Meat"}, fieldProductAmount)
See Also