Sign in Join
FPDoc Onlineexperiment

TGridDataCache record

In unit Grids

Stores cached information about a grid control.

Declaration

pascal
TGridDataCache = record

Description

TGridDataCache is a record type used to store and cache information about a grid control, its layout, and activity. TGridDataCache is the type used to implement the GCache property in TCustomGrid.

See also

Fields

FixedWidthSum of the column widths for fixed cells in a grid.
FixedHeightSum of the row heights for fixed cells in a grid.
GridWidthSum of the column widths for all cells in a grid.
GridHeightSum of the row heights for all cells in a grid.
ClientWidthWidth of the grid control minus the width for the vertical scroll bar.
ClientHeightHeight of the grid control minus the width of the horizontal scroll bar.
ClientRect
ScrollWidthThe difference between ClientWidth and FixedWidth.
ScrollHeightThe difference between ClientHeight and FixedHeight.
HScrollBarNetRangeDifference between the scroll bar range and the grid page size.
VisibleGridVisible non-fixed cell coordinates rectangle.
MaxClientXYBottom/Right coordinates in (pixels) for the visible parts of a grid.
ValidRowsTrue when there are no fixed columns to display in a grid.
ValidColsTrue when there are no fixed rows to display in the grid.
ValidGridTrue when there are no fixed cells for columns or rows in a grid.
AccumWidthCumulative preceding width per grid column.
AccumHeightCumulative preceding height per grid row.
TLColOffOffset in pixels for the Top/Left column in a grid.
TLRowOffOffset in pixels for the Top/Left row in a grid.
MaxTopLeftCell coordinates for the last cell that can be used as the grid visual origin.
MaxTLOffsetMax Top left offset for the last cell in the grid.
HotCellThe current "hot" cell in the grid.
HotCellPaintedTrue if the current "hot" cell has already been painted.
HotGridZoneGridZone for the last MouseMove.
ClickCellCell coordinates for the last mouse click event.
ClickMouseMouse coordinates for the last mouse click event.
PushedCellCell coordinates for the cell drawn in the pushed state.
PushedMouseMouse Coordinates for the cell drawn in the pushed state.
ClickCellPushedIndicates if the header cell is currently drawn in the pushed state.
FullVisibleGridVisible cells excluding partially visible cells.
MouseCellCell which contains the mouse pointer.
OldMaxTopLeftPrevious MaxTopleft (before column sizing).

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.