PivotGridControl.CreateDrillDownDataSource(Int32, Int32, List<String>) Method
Returns a list of records used to calculate a summary value for the specified cell. Allows you to specify the columns to be returned.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
public PivotDrillDownDataSource CreateDrillDownDataSource(
int columnIndex,
int rowIndex,
List<string> customColumns
)
Parameters
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. |
customColumns | List<String> | A list of columns to be returned. |
Returns
Type | Description |
---|---|
PivotDrillDownDataSource | A PivotDrillDownDataSource object that contains the underlying data. |
Remarks
Important
The customColumns parameter is in effect in Server and OLAP modes only; otherwise, it is ignored.
If you use the CreateDrillDownDataSource method in OLAP, take note of the following limitations:
- For MS SQL Server Analysis Services 2000, the customColumns parameter is ignored. In this instance, the CreateDrillDownDataSource method returns the granularity attributes.
- A note for MS SQL Server Analysis Services 2005 and 2008. If the customColumns list is null or empty, the CreateDrillDownDataSource method returns the columns corresponding to the current column, row and data PivotGrid fields. In addition, it returns filter fields if a filter is applied to them. Otherwise, it returns the columns specified by the customColumns list.
- If a filter is applied to a field, then that filter is taken into account if the corresponding drill-down column was returned from the server by the CreateDrillDownDataSource method.
- The CreateDrillDownDataSource method is not supported for cells corresponding to calculated measures.
- If multiple filter items are selected in a Filter Field, the drill-down data source cannot be created due to an MS SQL Server Analysis Services limitation. In this instance, the CreateDrillDownDataSource method throws an exception.
In server and OLAP modes, the CreateDrillDownDataSource method returns only visible fields if the customColumns parameter is set to null.