PivotGridCellTemplateItem.GetRowGrandTotal(Object[], PivotGridField) Method
Returns a Row Grand Total value calculated for the specified column field values, against the specified data field.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
columnValues | Object[] | 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
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.
The following table illustrates how to use the GetRowGrandTotal method to obtain specific grand total values.
Cell | C# | Visual Basic |
---|---|---|
Red | cellTemplateItem.GetRowGrandTotal(new object[] {1995, 1}, fieldProductAmount); |
cellTemplateItem.GetRowGrandTotal(New Object() {1995, 1}, fieldProductAmount) |
Blue | cellTemplateItem.GetRowGrandTotal(new object[] {1995}, fieldProductAmount); |
cellTemplateItem.GetRowGrandTotal(New Object() {1995}, fieldProductAmount) |
Green | cellTemplateItem.GetRowGrandTotal(null, fieldProductAmount); |
cellTemplateItem.GetRowGrandTotal(Nothing, fieldProductAmount) |