TcxCustomVerticalGrid Class
The base class for vertical grids.
Declaration
TcxCustomVerticalGrid = class(
TcxExtEditingControl,
IcxStoredObject,
IcxStoredParent,
IcxDataControllerConditionalFormattingProviderOwner,
IdxSkinSupport
)
Remarks
The main element of a vertical grid control is a row (see the Rows Overview topic). The TcxCustomVerticalGrid class provides a number of properties and methods to add or delete its rows, navigate rows and to access individual rows. You can access the vertical grid’s rows via the Rows property (see the Accessing Rows topic).
The vertical grid control has several option sets controlling different aspects of its behavior and appearance. These include:
OptionsBehavior, containing settings which determine the response to user actions;
OptionsData, determining the data-aware functionality;
OptionsView, containing appearance options.
The vertical grid control provides several ways of managing its appearance. A custom painting mechanism is available by handling three events:
OnDrawBackground – allows painting of the vertical grid control background;
OnDrawRowHeader – allows painting of the row headers;
OnDrawValue – allows painting of the row values.
Another method of managing the grid’s appearance is to use the Styles property. It allows assigning different visual styles (background color and font settings) to various control elements: background, cell content, row headers, category rows, selected row, etc. See the Styles Overview topic for details.
The TcxCustomVerticalGrid class implements a saving/restoring mechanism. The StoreTo…/RestoreFrom… methods allow saving to/restoring from three storage types: INI-file, registry and a stream.