VCL Pivot Grid

Drill Down

 

The ExpressPivotGrid 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 capabilities available to you and your end-users within the suite allows you to easily analyze records that were used to calculate a specific summary.

Just a single line of code is required to obtain the TcxCustomDataSource object that maintains drill down data. You can use this object's methods to collect values for any row and column. Once you have obtained the desired values, you can visualize drill down data in any control you wish. And if you own any other Developer Express visual container control such as the ExpressQuantumGrid, you would simply supply the TcxCustomDataSource object to the control.

For example, the following code allows you to display drill down data within the ExpressQuantumGrid when you double-click within a cell. Note that the following code assumes that a popup form with a grid placed upon it already exists and the grid's main view is populated with the appropriate columns.

[Delphi]

procedure TForm1.cxDBPivotGrid1DblClick(Sender: TObject);
var
  ACrossCell: TcxPivotGridCrossCell;
  AForm: TFrmDrillDown;
  ADataSource: TcxCustomDataSource;
begin
  with cxDBPivotGrid1.HitTest do
  begin
    if HitAtDataCell then
      ACrossCell := (HitObject as TcxPivotGridDataCellViewInfo).CrossCell;
  end;
  AForm := TFrmDrillDown.Create(nil);
  try
    ADataSource := ACrossCell.CreateDrillDownDataSource;
    try
      AForm.TableView.DataController.CustomDataSource := ADataSource;
      AForm.ShowModal;
    finally
      ADataSource.Free;
    end;
  finally
    AForm.Free;
  end;
end;

Back to the Feature List

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 8:30am and 5:00pm 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.