wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-createdrilldowndatasource-x28-system-dot-int32-system-dot-int32-x29.md
Returns a list of records used to calculate a summary value for the specified cell.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public PivotDrillDownDataSource CreateDrillDownDataSource(
int columnIndex,
int rowIndex
)
Public Function CreateDrillDownDataSource(
columnIndex As Integer,
rowIndex 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.
|
| 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).
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateDrillDownDataSource(Int32, Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
public PivotDrillDownDataSource CreateDrillDownDataSource() {
return pivotGrid.CreateDrillDownDataSource(cellItem.ColumnIndex, cellItem.RowIndex);
}
Public Function CreateDrillDownDataSource() As PivotDrillDownDataSource
Return pivotGrid.CreateDrillDownDataSource(cellItem.ColumnIndex, cellItem.RowIndex)
End Function
See Also