Back to Devexpress

PivotCellBaseEventArgs.GetCellValue(Object[], Object[], PivotGridField) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotcellbaseeventargs-dot-getcellvalue-x28-system-dot-object-system-dot-object-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridfield-x29.md

latest2.8 KB
Original Source

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public object GetCellValue(
    object[] columnValues,
    object[] rowValues,
    PivotGridField dataField
)
vb
Public Function GetCellValue(
    columnValues As Object(),
    rowValues As Object(),
    dataField As PivotGridField
) As Object

Parameters

NameTypeDescription
columnValuesObject[]

An array of column values.

| | rowValues | Object[] |

An array of row values.

| | dataField | PivotGridField |

A PivotGridField object that specifies the data field.

|

Returns

TypeDescription
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.

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

CellC#Visual Basic
Rede.GetCellValue(new object[] {1996, 1}, new object[] {"Alice Mutton"}, fieldProductAmount);e.GetCellValue(New Object() {1996, 1}, New Object() {"Alice Mutton"}, fieldProductAmount)
Greene.GetCellValue(new object[] {1996}, new object[] {"Aniseed Syrup"}, fieldProductAmount);e.GetCellValue(New Object() {1996}, New Object() {"Aniseed Syrup"}, fieldProductAmount)
Bluee.GetCellValue(null, new object[] {"Boston Crab Meat"}, fieldProductAmount);e.GetCellValue(Nothing, New Object() {"Boston Crab Meat"}, fieldProductAmount)

See Also

PivotCellBaseEventArgs Class

PivotCellBaseEventArgs Members

DevExpress.Xpf.PivotGrid Namespace