PivotDrillDownDataSource Class

Represents a list of the records which are used to calculate summaries for individual cells.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.1.Core.dll

Declaration

public abstract class PivotDrillDownDataSource :
    PivotDataSource
Public MustInherit Class PivotDrillDownDataSource
    Inherits PivotDataSource

Related API Members

The following members accept/return PivotDrillDownDataSource objects:

Show 44 links
Library Related API Members
Cross-Platform Class Library CustomExportCellEventArgsBase.CreateDrillDownDataSource()
CustomExportCellEventArgsBase.CreateDrillDownDataSource(Int32)
CustomExportCellEventArgsBase.CreateDrillDownDataSource(Int32, List)
CustomExportCellEventArgsBase.CreateDrillDownDataSource(List)
PivotCellEventArgsBase.CreateDrillDownDataSource()
PivotCellEventArgsBase.CreateDrillDownDataSource(Int32)
PivotCellEventArgsBase.CreateDrillDownDataSource(Int32, List)
PivotCellEventArgsBase.CreateDrillDownDataSource(List)
PivotDrillDownDataRow.DataSource
PivotFieldValueEventArgsBase.CreateDrillDownDataSource()
PivotFieldValueEventArgsBase.CreateDrillDownDataSource(Int32)
PivotFieldValueEventArgsBase.CreateDrillDownDataSource(Int32, List)
PivotFieldValueEventArgsBase.CreateDrillDownDataSource(List)
PivotFieldValueItem.CreateDrillDownDataSource()
PivotFieldValueItem.CreateQueryModeDrillDownDataSource(Int32, List)
PivotGridCustomSummaryEventArgsBase.CreateDrillDownDataSource()
WinForms Controls PivotCustomDrawCellBaseEventArgs.CreateDrillDownDataSource()
PivotCustomDrawCellBaseEventArgs.CreateDrillDownDataSource(Int32)
PivotCustomDrawCellBaseEventArgs.CreateDrillDownDataSource(Int32, List)
PivotCustomDrawCellBaseEventArgs.CreateDrillDownDataSource(List)
PivotFieldImageIndexEventArgs.CreateDrillDownDataSource()
PivotFieldImageIndexEventArgs.CreateDrillDownDataSource(Int32)
PivotFieldImageIndexEventArgs.CreateDrillDownDataSource(Int32, List)
PivotFieldImageIndexEventArgs.CreateDrillDownDataSource(List)
PivotGridControl.CreateDrillDownDataSource()
PivotGridControl.CreateDrillDownDataSource(Int32, Int32)
PivotGridControl.CreateDrillDownDataSource(Int32, Int32, Int32)
PivotGridControl.CreateDrillDownDataSource(Int32, Int32, Int32, List)
PivotGridControl.CreateDrillDownDataSource(Int32, Int32, List)
ASP.NET Controls and MVC Extensions ASPxPivotGrid.CreateDrillDownDataSource()
ASPxPivotGrid.CreateDrillDownDataSource(Int32, Int32)
ASPxPivotGrid.CreateDrillDownDataSource(Int32, Int32, Int32)
ASPxPivotGrid.CreateDrillDownDataSource(Int32, Int32, Int32, List)
ASPxPivotGrid.CreateDrillDownDataSource(Int32, Int32, List)
PivotFieldStateChangedEventArgs.CreateDrillDownDataSource()
PivotFieldStateChangedEventArgs.CreateDrillDownDataSource(Int32, List)
PivotGridCellTemplateItem.CreateDrillDownDataSource()
PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object)
PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object, Int32, Int32)
PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object, Int32, Int32, Int32)
PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object, Int32, Int32, Int32, List)
PivotGridExtension.CreateDrillDownDataSource(PivotGridSettings, Object, Int32, Int32, List)
PivotGridExtension.CreateOLAPDrillDownDataSource(PivotGridSettings, String, Int32, Int32, Int32, List)
PivotGridExtension.CreateOLAPDrillDownDataSource(PivotGridSettings, String, Int32, Int32, List)

Remarks

The PivotDrillDownDataSource object is returned by the CreateDrillDownDataSource method, provided by the PivotGrid control. The method overloads allow you to obtain a list of the records which are used to calculate summaries for individual cells.

The PivotDrillDownDataSource class implements the IList interface, so the data returned by the CreateDrillDownDataSource method can easily be displayed in a grid control (XtraGrid or DataGrid).

Use the PivotGridControl.CreateDrillDownDataSource method to access the underlying data for a cell. In addition, the CreateDrillDownDataSource method is accessible:

Individual rows in the PivotDrillDownDataSource are represented by PivotDrillDownDataRow objects.

Use the CreateDrillDownDataSource method to retrieve the underlying data in OLAP mode.

Examples

The following example shows how to display the records from the control's underlying data source which correspond to a particular cell. A new form that displays these records is opened when a particular cell in the PivotGrid control is double-clicked.

In the example the PivotGridControl.CellDoubleClick event is handled. The PivotCellEventArgsBase<TField, TData, TCustomTotal>.CreateDrillDownDataSource method is called to obtain the list of records associated with the clicked cell.

The following image shows a sample PivotGrid control which is bound to the Invoices table in the nwind.mdb database:

CreateDrillDownDataSource_Ex_Grid

Clicking the third cell in the 1994 column will invoke the following form:

CreateDrillDownDataSource_Ex_Data

It lists all the orders made in 1994 by Belgian customers.

using DevExpress.XtraPivotGrid;

private void pivotGridControl1_CellDoubleClick(object sender, PivotCellEventArgs e) {
   // Create a new form.
   Form form = new Form();
   form.Text = "Records";
   // Place a DataGrid control on the form.
   DataGrid grid = new DataGrid();
   grid.Parent = form;
   grid.Dock = DockStyle.Fill;
   // Get the recrd set associated with the current cell and bind it to the grid.
   grid.DataSource = e.CreateDrillDownDataSource();
   form.Bounds = new Rectangle(100, 100, 500, 400);
   // Display the form.
   form.ShowDialog();
   form.Dispose();
}

Inheritance

Object
PivotDataSource
PivotDrillDownDataSource
See Also