Skip to main content

PivotGridControl.CreateDrillDownDataSource(Int32, Int32, Int32) Method

Returns a list of records used to calculate a summary value for the specified cell. Allows you to limit the number of records to be returned.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll

#Declaration

public PivotDrillDownDataSource CreateDrillDownDataSource(
    int columnIndex,
    int rowIndex,
    int maxRowCount
)

#Parameters

Name Type Description
columnIndex Int32

A zero-based integer which identifies the visible index of the column.

rowIndex Int32

A zero-based integer which identifies the visible index of the row.

maxRowCount Int32

An integer value that specifies the maximum number of data rows to be returned. -1 to retrieve all rows.

#Returns

Type Description
PivotDrillDownDataSource

A PivotDrillDownDataSource object that contains the underlying data.

#Remarks

In OLAP mode, calling this method is equivalent to calling the PivotGridControl.CreateOlapDrillDownDataSource method with the customColumns parameter set to null.

NOTE

Calling the CreateDrillDownDataSource method from the PivotGridControl.CustomSummary and PivotGridControl.CustomUnboundFieldData event handlers may result in the stack overflow exception. To provide custom cell values that require obtaining the underlying data to be calculated, handle the PivotGridControl.CustomCellValue event, and call the CreateDrillDownDataSource method in the event handler.

See Also