TcxCustomGridView Class
The base class for all grid View classes.
Declaration
TcxCustomGridView = class(
TcxControlChildComponent,
IcxStoredObject,
IcxStoredParent,
IcxGridViewLayoutEditorSupport,
IdxAdornerTargetElement
)
Remarks
The TcxCustomGridView class is the base class for all View classes. It implements the base functionality for all Views. The main purpose of all View types is to specify the manner in which to display data. A View class also encapsulates the master-detail data representation concept.
A master-detail data representation requires the presence of two Views, connected to data sets linked by specific field values (see the Master-Detail topic for details). Each time a particular master row gets expanded, the corresponding portion of the detail dataset is displayed. A View representing that portion is called a “clone“ View. All “clone” Views copy settings from the View corresponding to the detail hierarchy level. That View is called “pattern“ and represents the template for all detail Views which appear when master rows are expanded.
“Pattern” Views are not displayed at runtime, they only provide their settings for the creation of “clone” Views. However, each “clone” View may have individual settings, different from “pattern” View settings. This may happen if a “pattern” View’s settings have been changed since a “clone” View appeared on the screen. In order to recreate your “clone” Views with new “pattern” settings, call DataController.ClearDetails.
The TcxCustomGridView members provide a user with information about the current View:
whether it is a detail or master View;
whether it is a pattern;
whether it has focus, etc.
They also specify the master View record for which the current View is displayed as a detail View, the grid level the current View belongs to, etc. The TcxCustomGridView members allow you to:
access the current View’s collections of clones and styles;
define the appearance of the current View;
set the options managing the View selection and its visual settings;
repaint the current View;
specify the popup menu associated with the current View.