Skip to main content
A newer version of this page is available. .

PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetColumnGrandTotal(Object[], TField) Method

Returns a Column Grand Total value calculated for the specified row field values, against the specified data field.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.1.Core.dll

Declaration

public object GetColumnGrandTotal(
    object[] rowValues,
    TField dataField
)

Parameters

Name Type Description
rowValues Object[]

An array of row field values for which the required Column Grand Total is calculated.

dataField TField

A T object that specifies the data field, against which the required Column Grand Total is calculated.

Returns

Type Description
Object

A Column Grand Total value.

Remarks

Consider the pivot grid displayed in the image below.

GetColumnGrandTotal

The following table illustrates how to use the GetColumnGrandTotal method to obtain specific grand total values.

Cell C# Visual Basic
Green e.GetColumnGrandTotal(new object[] {1, "Condiments"}, fieldOrderAmount); e.GetColumnGrandTotal(New Object() {1, "Condiments"}, fieldOrderAmount)
Blue e.GetColumnGrandTotal(new object[] {1}, fieldOrderAmount); e.GetColumnGrandTotal(New Object() {1}, fieldOrderAmount)
Red e.GetColumnGrandTotal(null, fieldOrderAmount); e.GetColumnGrandTotal(Nothing, fieldOrderAmount)
See Also