Skip to main content

PivotGridControl.CreateDrillDownDataSource() Method

Returns a list of records used to calculate summary values displayed within the PivotGridControl.

Namespace: DevExpress.Xpf.PivotGrid

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

Declaration

public PivotDrillDownDataSource CreateDrillDownDataSource()

Returns

Type Description
PivotDrillDownDataSource

A PivotDrillDownDataSource object that contains the underlying data.

Remarks

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.

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