[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Chart Control
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Binding to Data
   [Collapse]Data Shaping
    [Collapse]Aggregation
     [Collapse]Summaries
       Summary Overview
       Automatic Summaries
       Custom Summaries
      [Expand]Summary Display Modes
       Accessing Summary Values
       Obtaining Underlying Data (Drill-Down)
      Totals
      Aggregation Levels
     Grouping
    [Expand]Sorting
    [Expand]Filtering
   [Expand]Data Analysis
   [Expand]Data Formatting
   [Expand]Layout
   [Expand]Appearance
   [Expand]Export
   [Expand]Design-Time Features
   [Expand]UI Elements
   [Expand]Examples
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Obtaining Underlying Data (Drill-Down)

Cells display summaries calculated against data field(s) for a subset of the records in the Pivot Grid's data source. All records from this subset have matching values in a column field(s) and row field(s). These values are identified by column and row headers.

To get the underlying records for an indivisual cell, use the ASPxPivotGrid.CreateDrillDownDataSource method.

Consider the following ASPxPivotGrid control:

For the top-leftmost cell ($1,500.00), the ASPxPivotGrid.CreateDrillDownDataSource method will return the records from the data source which have:

  • the value "Bon app'" in the 'Customer' field
  • the value "Carnarvon Tigers" in the 'Product Name' field
  • the 1995 value in the 'Year' field

For the cell ($2,435.00) at the intersection of the first column and fourth row, the ASPxPivotGrid.CreateDrillDownDataSource method will return the records which have:

  • the value "Bon app'" in the 'Customer' field
  • the 1995 value in the 'Year' field

Expanded Example: How to Obtain Underlying Data

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E1873.

The ASPxPivotGrid includes the drill-down capability, which enables you to retrieve a list of records that were used to calculate a particular summary.

To obtain drill-down data, use the pivot grid's CreateDrillDownDataSource method. Its parameters completely identify a summary cell.

In this example, an end-user can view records from the control's underlying data source, associated with a summary cell, by clicking on it. The obtained data is displayed by the ASPxGridView within a popup window.

Is this topic helpful?​​​​​​​