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.v24.2.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
rowValues | Object[] | 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
Type | Description |
---|---|
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.
Cell | C# | Visual Basic |
---|---|---|
Green | e.GetColumnGrandTotal(new object[] {1, "Condiments"}, fieldOrderAmount); |
e.GetColumnGrandTotal(New Object() {1, "Condiments"}, fieldOrderAmount) |
Blue | e.GetColumnGrandTotal(new object[] {1}, fieldOrderAmount); |
e.GetColumnGrandTotal(New Object() {1}, fieldOrderAmount) |
Red | e.GetColumnGrandTotal(null, fieldOrderAmount); |
e.GetColumnGrandTotal(Nothing, fieldOrderAmount) |
See Also