Skip to main content

PivotGridExtension.CreateSummaryDataSource(PivotGridSettings, Object, Int32, Int32) Method

Returns a summary datasource for the specified row.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static PivotSummaryDataSource CreateSummaryDataSource(
    PivotGridSettings pivotGridSettings,
    object dataSource,
    int columnIndex,
    int rowIndex
)

Parameters

Name Type Description
pivotGridSettings PivotGridSettings

A PivotGridSettings object that contains PivotGrid settings.

dataSource Object

A PivotGrid data source.

columnIndex Int32

An integer value that specifies the column’s index.

rowIndex Int32

An integer value that specifies the row’s index.

Returns

Type Description
PivotSummaryDataSource

A PivotSummaryDataSource object that is the summary datasource.

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:

CreateSummaryDS

See Also