Back to Devexpress

PivotCellBaseEventArgs.GetRowGrandTotal(Object[], PivotGridField) Method

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

latest2.8 KB
Original Source

PivotCellBaseEventArgs.GetRowGrandTotal(Object[], PivotGridField) Method

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

Parameters

NameTypeDescription
columnValuesObject[]

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

| | dataField | PivotGridField |

A PivotGridField 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[] {1996, 1}, fieldProductAmount);e.GetRowGrandTotal(New Object() {1996, 1}, fieldProductAmount)
Greene.GetRowGrandTotal(new object[] {1996}, fieldProductAmount);e.GetRowGrandTotal(New Object() {1996}, fieldProductAmount)
Bluee.GetRowGrandTotal(null, fieldProductAmount);e.GetRowGrandTotal(Nothing, fieldProductAmount)

See Also

GetColumnGrandTotal

PivotCellBaseEventArgs Class

PivotCellBaseEventArgs Members

DevExpress.Xpf.PivotGrid Namespace