wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-createdrilldowndatasource-x28-system-dot-int32-system-dot-int32-system-dot-int32-x29.md
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.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public PivotDrillDownDataSource CreateDrillDownDataSource(
int columnIndex,
int rowIndex,
int maxRowCount
)
Public Function CreateDrillDownDataSource(
columnIndex As Integer,
rowIndex As Integer,
maxRowCount As Integer
) As PivotDrillDownDataSource
| Name | Type | Description |
|---|---|---|
| columnIndex | Int32 |
A zero-based integer which identifies the visible index of the column. Pass -1 as a column index to obtain the column’s Grand Total.
| | rowIndex | Int32 |
A zero-based integer which identifies the visible index of the row. Pass -1 as a row index to obtain the row’s Grand Total.
| | maxRowCount | Int32 |
An integer value that specifies the maximum number of data rows to be returned. -1 to retrieve all rows.
|
| Type | Description |
|---|---|
| PivotDrillDownDataSource |
A PivotDrillDownDataSource object that contains the underlying data.
|
In OLAP mode, calling this method is equivalent to calling the PivotGridControl.CreateOlapDrillDownDataSource method with the customColumns parameter set to null.
If you use the CreateDrillDownDataSource method in OLAP, take note of the following limitations:
Note
Calling the CreateDrillDownDataSource method from the PivotGridControl.CustomSummary and PivotGridControl.CustomUnboundFieldData event handlers may result in a stack overflow exception. To provide custom cell values that require obtaining the underlying data to be calculated, call the corresponding methods provided by the current event arguments (PivotCustomSummaryEventArgs.CreateDrillDownDataSource and PivotCustomFieldDataEventArgs.GetListSourceColumnValue, respectively).
See Also