Back to Devexpress

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

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotcelleventargsbase-3-dot-getcolumngrandtotal-x28-system-dot-object-0-x29.md

latest2.8 KB
Original Source

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

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
public object GetColumnGrandTotal(
    object[] rowValues,
    TField dataField
)
vb
Public Function GetColumnGrandTotal(
    rowValues As Object(),
    dataField As TField
) As Object

Parameters

NameTypeDescription
rowValuesObject[]

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

TypeDescription
Object

A Column Grand Total value.

|

Remarks

Consider the pivot grid displayed in the image below.

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

CellC#Visual Basic
Greene.GetColumnGrandTotal(new object[] {1, "Condiments"}, fieldOrderAmount);e.GetColumnGrandTotal(New Object() {1, "Condiments"}, fieldOrderAmount)
Bluee.GetColumnGrandTotal(new object[] {1}, fieldOrderAmount);e.GetColumnGrandTotal(New Object() {1}, fieldOrderAmount)
Rede.GetColumnGrandTotal(null, fieldOrderAmount);e.GetColumnGrandTotal(Nothing, fieldOrderAmount)

See Also

XtraPivotGrid.PivotCellEventArgsBase

XtraPivotGrid.PivotCellEventArgsBase

PivotCellEventArgsBase<TField, TData, TCustomTotal> Class

PivotCellEventArgsBase<TField, TData, TCustomTotal> Members

DevExpress.XtraPivotGrid Namespace