Back to Devexpress

PivotCellBaseEventArgs.GetColumnGrandTotal(Object[], PivotGridField) Method

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

latest2.9 KB
Original Source

PivotCellBaseEventArgs.GetColumnGrandTotal(Object[], PivotGridField) Method

Returns a Column Grand Total value calculated for the specified row 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 GetColumnGrandTotal(
    object[] rowValues,
    PivotGridField dataField
)
vb
Public Function GetColumnGrandTotal(
    rowValues As Object(),
    dataField As PivotGridField
) As Object

Parameters

NameTypeDescription
rowValuesObject[]

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

| | dataField | PivotGridField |

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

|

Returns

TypeDescription
Object

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

CellC#Visual Basic
Rede.GetColumnGrandTotal(new object[] {1996, 2}, fieldProductSales);e.GetColumnGrandTotal(New Object() {1996, 2}, fieldProductSales)
Greene.GetColumnGrandTotal(new object[] {1996}, fieldProductSales);e.GetColumnGrandTotal(New Object() {1996}, fieldProductSales)
Bluee.GetColumnGrandTotal(null, fieldProductSales);e.GetColumnGrandTotal(Nothing, fieldProductSales)

See Also

GetColumnGrandTotal

PivotCellBaseEventArgs Class

PivotCellBaseEventArgs Members

DevExpress.Xpf.PivotGrid Namespace