Skip to main content

Working With Details At Runtime

  • 2 minutes to read

The ExpressQuantumGrid is capable of displaying data in a hierarchical master-detail relationship (see the Data Representation and Master-Detail topics in this help system for more information). Each visual nesting level is represented by a grid level with an associated View.

Every time a master row gets expanded the corresponding detail View is displayed. This View is constructed based on the settings of the “pattern“ View and the appropriate portion of the detail data set. Such detail Views are called “clones“ and can be accessed individually by the View.Clones property. Each “clone” is an instance of a “pattern” View class. This allows a developer the ability to give each “clone” View different settings dynamically. Settings that can be customized include:

  • Columns retrieved from a data set;

  • Column positions;

  • Grouping;

  • Filtering;

  • Sorting;

  • Summary calculations.

A convenient way to customize these settings is by using the TcxGridPopupMenu component. It provides a set of menus that appear when an end-user right-clicks within a column header, View’s footer, group footer or group row.

If you want to synchronize all the opened detail Views with the “pattern” View settings, call the DataController.ClearDetails method. It destroys all the displayed detail Views and recreates them with the “pattern” settings. A convenient way to keep all “clone” Views automatically synchronized with the “pattern” View is to set the detail View’s Synchronization property to True.