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

Declaration

public object GetRowGrandTotal(
    object[] columnValues,
    TField dataField
)
Public Function GetRowGrandTotal(
    columnValues As Object(),
    dataField As TField
) As Object

Parameters

Name Type Description
columnValues Object[]

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

Type Description
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.

GetRowGrandTotal

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

Cell C# Visual Basic
Red e.GetRowGrandTotal(new object[] {1995, 1}, fieldProductAmount); e.GetRowGrandTotal(New Object() {1995, 1}, fieldProductAmount)
Blue e.GetRowGrandTotal(new object[] {1995}, fieldProductAmount); e.GetRowGrandTotal(New Object() {1995}, fieldProductAmount)
Green e.GetRowGrandTotal(null, fieldProductAmount); e.GetRowGrandTotal(Nothing, fieldProductAmount)
See Also