The XtraPivotGrid is designed to build summarized reports so that end-users can easily and quickly analyze large quantities of data. Features like filtering, top value display, hierarchical value arrangement on the axes, grand and group totals give you a wide range of tools to control the data's level of detail. The drill down capability included in the suite completes the massive arsenal in this toolset. With this feature you can easily take a look at the records that were used to calculate a particular summary.

Just a single line of code is required to obtain the records behind a summary. With just a few additional lines, you can show the obtained data in any suitable control, say for instance a DataGrid. The following code demonstrates how you can do this in the control's CellDoubleClick event handler.

C#
VB
private void pivotGridControl1_CellDoubleClick(object sender,
    DevExpress.XtraPivotGrid.PivotCellEventArgs e) {
   Form frm = new Form();
   DataGrid grid = new DataGrid();
   frm.Controls.Add(grid);
   grid.Dock = DockStyle.Fill;
   grid.DataSource = e.CreateDrillDownDataSource();
   frm.ShowDialog();
   frm.Dispose();
}

As you can see, the CellDoubleClick event is optimized for the drill down feature, since you can obtain the drill down data source directly via its parameter. You can also get that data source for an arbitrary cell. Simply obtain the cell information object via the control's Cells property and call that object's CreateDrillDownDataSource method.

The following image shows you how the drill down feature works.

Developer Express WinForms Pivot Grid provides the Drill Down feature that enables you to display data that stands behind a summary in a separate data-aware control

Learn More: Help Topic: Obtaining Underlying Data | Help Topic: How to Display Underlying Records

Subscribe Today

It's Your Choice: All DevExpress WinForms Controls can be purchased as part of the following Subscriptions:
Universal Subscription
DXperience Enterprise
WinForms Controls

What's New in 2012

The best keeps on getting better. Our newest WinForms controls and features include:

WinForms Tech Library

Explore the power of the DevExpress WinForms product line at your pace with the following online technical resources:

Our Awards


              DevExpress Awards : Windows IT Pro Community Choice
              DevExpress Awards : Visual Studio Magazine Readers Choice
              DevExpress Awards : SDTimes 100
              DevExpress Awards : ComponentSource Bestselling Publishers
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.