Skip to main content

PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object) Method

Returns data records used to calculate summary values for all cells.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static PivotDrillDownDataSource CreateDrillDownDataSource(
    PivotGridSettings pivotGridSettings,
    object dataSource
)

Parameters

Name Type Description
pivotGridSettings PivotGridSettings

A PivotGridSettings object that contains PivotGrid settings.

dataSource Object

A PivotGrid data source.

Returns

Type Description
PivotDrillDownDataSource

A PivotDrillDownDataSource object that contains the underlying data.

Remarks

To obtain underlying data for a particular cell, use other overloads of the CreateDrillDownDataSource method that take the columnIndex and rowIndex parameters.

Important

Do not call the CreateDrillDownDataSource method in the PivotGridSettings.CustomSummary and PivotGridSettings.CustomUnboundFieldData event handlers to avoid a stack overflow exception. Instead, handle the PivotGridSettings.CustomCellValue event and call the CreateDrillDownDataSource method in the event handler.

See Also