Back to Devexpress

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

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

latest2.6 KB
Original Source

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

Returns a Row Grand Total value calculated for the specified column 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 GetRowGrandTotal(
    object[] columnValues,
    TField dataField
)
vb
Public Function GetRowGrandTotal(
    columnValues As Object(),
    dataField As TField
) As Object

Parameters

NameTypeDescription
columnValuesObject[]

An array of column field values for which the required Row Grand Total is calculated.

| | dataField | TField |

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

|

Returns

TypeDescription
Object

The Row Grand Total value calculated for the specified column 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 GetRowGrandTotal method to obtain specific grand total values.

CellC#Visual Basic
Rede.GetRowGrandTotal(new object[] {1995, 1}, fieldProductAmount);e.GetRowGrandTotal(New Object() {1995, 1}, fieldProductAmount)
Bluee.GetRowGrandTotal(new object[] {1995}, fieldProductAmount);e.GetRowGrandTotal(New Object() {1995}, fieldProductAmount)
Greene.GetRowGrandTotal(null, fieldProductAmount);e.GetRowGrandTotal(Nothing, fieldProductAmount)

See Also

PivotCellEventArgsBase<TField, TData, TCustomTotal> Class

PivotCellEventArgsBase<TField, TData, TCustomTotal> Members

DevExpress.XtraPivotGrid Namespace