PivotGridExtension.CreateSummaryDataSource(PivotGridSettings, Object, Int32, Int32) Method
In This Article
Returns a summary datasource for the specified row.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public static PivotSummaryDataSource CreateSummaryDataSource(
PivotGridSettings pivotGridSettings,
object dataSource,
int columnIndex,
int rowIndex
)
#Parameters
Name | Type | Description |
---|---|---|
pivot |
Pivot |
A Pivot |
data |
Object | A Pivot |
column |
Int32 | An integer value that specifies the column’s index. |
row |
Int32 | An integer value that specifies the row’s index. |
#Returns
Type | Description |
---|---|
Pivot |
A Pivot |
#Remarks
In the example below, the CreateSummaryDataSource method is used in the GridView’s controller to create a summary datasource which is then displayed within the GridView extension:
object dataObject = PivotGridExtension.CreateSummaryDataSource(pivotGridSettings, dataSource, 0, 0);
return PartialView("GridViewPartial", dataObject);
The image below shows the result:
See Also