Skip to main content
A newer version of this page is available. .

TcxGridSite Class

Represents a control containing a single View within the ExpressQuantumGrid.

Declaration

TcxGridSite = class(
    TcxControl,
    IcxLockedStatePaint,
    IcxEditorFieldLink
)

Remarks

TcxGridSite is a control containing Views within the ExpressQuantumGrid. A grid site receives and handles mouse, keyboard and drag-and-drop events and passes appropriate messages to a corresponding View object. A grid site is passed as the Sender parameter to various mouse and keyboard events of a View object (OnMouseDown, OnMouseWheel, OnKeyDown, etc.)

A grid site is responsible for rendering Views. It draws Views on its surface with the help of the ViewInfo object, which is passed as a parameter of the TcxGridSite constructor and can then be accessed via the grid site’s ViewInfo property. The ViewInfo object returned by this property provides information on sizes of grid View elements. The View displayed by the site is returned by the GridView property.

When a grid control represents a master-detail relationship, a grid site of a master View contains grid sites of detail Views.

A grid site provides the ability to display a pop-up menu within a specific View when it is selected and an end-user then clicks it with the right mouse button. Assign a pop-up menu object to the PopupMenu property for this purpose.

See Also