Back to Devexpress

PivotCellEventArgsBase<TField, TData, TCustomTotal>.CreateDrillDownDataSource(List<String>) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotcelleventargsbase-3-dot-createdrilldowndatasource-x28-system-dot-collections-dot-generic-dot-list-system-dot-string-x29.md

latest3.2 KB
Original Source

PivotCellEventArgsBase<TField, TData, TCustomTotal>.CreateDrillDownDataSource(List<String>) Method

Returns data records used to calculate a summary value for the current cell. Allows you to specify the columns to return.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
public PivotDrillDownDataSource CreateDrillDownDataSource(
    List<string> customColumns
)
vb
Public Function CreateDrillDownDataSource(
    customColumns As List(Of String)
) As PivotDrillDownDataSource

Parameters

NameTypeDescription
customColumnsList<String>

A list of columns to return.

|

Returns

TypeDescription
PivotDrillDownDataSource

A PivotDrillDownDataSource object that contains the underlying data.

|

Remarks

If you use the CreateDrillDownDataSource method in OLAP mode, take note of the following limitations:

OLAP ServerNote
MS SQL Server Analysis Services 2000The customColumns parameter is ignored and the CreateDrillDownDataSource method returns the granularity attributes.
MS SQL Server Analysis Services 2005 and 2008If the customColumns list is null or empty, the CreateDrillDownDataSource method returns the columns related to the current column, row and data PivotGrid fields. The method also returns filter fields, if any.
Any OLAP ServerIf returned records contain a column used as a filter in Pivot Grid, the returned data are filtered.
Any OLAP ServerThe CreateDrillDownDataSource is not applicable for fields which are calculated measures.
MS SQL Server Analysis Services - all versionsMultiple filter items selected in a Filter field results in an exception.

In server and OLAP modes, the CreateDrillDownDataSource method returns only visible fields. To get hidden field values, use the method’s overloads with the customColumns parameter which allow you to specify the columns to return.

See Also

PivotCellEventArgsBase<TField, TData, TCustomTotal> Class

PivotCellEventArgsBase<TField, TData, TCustomTotal> Members

DevExpress.XtraPivotGrid Namespace