Data Drill-Down

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

LIVE CHAT

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, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2014 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners