TcxGridSite Class
A grid View container in the TcxGrid control.
Declaration
TcxGridSite = class(
TcxControl,
IcxLockedStatePaint,
IcxEditorFieldLink
)
Remarks
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 displays 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.