Skip to main content

PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object, Int32, Int32, List<String>) Method

Returns data records associated with the specified cell.

Namespace: DevExpress.Web.Mvc

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

Declaration

public static PivotDrillDownDataSource CreateDrillDownDataSource(
    PivotGridSettings pivotGridSettings,
    object dataSource,
    int columnIndex,
    int rowIndex,
    List<string> customColumns
)

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 zero-based column index.

rowIndex Int32

An integer value that specifies the zero-based row index.

customColumns List<String>

A list of columns to return.

Returns

Type Description
PivotDrillDownDataSource

A PivotDrillDownDataSource object which contains records associated with the specified cell.

Remarks

Important

The customColumns parameter is in effect in Server and OLAP modes only; otherwise, it is ignored.

CreateDrillDownDataSource

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