PivotGridCellTemplateItem.GetColumnGrandTotal(Object[], PivotGridField) Method
Returns a Column Grand Total value calculated for the specified row field values, against the specified data field.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public object GetColumnGrandTotal(
object[] rowValues,
PivotGridField dataField
)
#Parameters
Name | Type | Description |
---|---|---|
row |
Object[] | An array of row field values for which the required Column Grand Total is calculated. |
data |
Pivot |
A Pivot |
#Returns
Type | Description |
---|---|
Object | The column grand total value calculated against the specified data field and from the specified row values. |
#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 | cell |
cell |
Blue | cell |
cell |
Red | cell |
cell |