Skip to main content
Table of Contents

TTMSFNCDataGridBase Class

Control base of the data grid. Owns the renderer exposed as Root and bridges it to the host control's paint, resize, export, and loading lifecycle.

API unit family: TMSFNCDataGridBase Inherits from: TTMSFNCCustomControl

Syntax

GeneratedPascalC++
TTMSFNCDataGridBase = class(TTMSFNCCustomControl)
class PASCALIMPLEMENTATION TTMSFNCDataGridBase : public TTMSFNCCustomControl

Remarks

Do not use this class directly; drop a TTMSFNCDataGrid on a form instead. Subclass it only when building a custom grid variant that needs a different renderer class.

The renderer is created lazily on first access of Root, is named 'Root', and is owned and freed by this control. Most public methods of this class (BeginUpdate, Clear, RefreshData, ...) simply forward to the renderer. After loading and after every resize, the control passes its local rectangle to the renderer and calls TTMSFNCDataGridCore.Update.

Properties

Name Description
Root The renderer that holds the grid data, layout engine and options, and draws all grid content.
RootPersistence Placeholder property that carries the renderer settings in the grid's JSON settings persistence.

Methods

Name Description
BeginUpdate Suspends layout recalculation and repainting until the matching EndUpdate call.
Clear Resets the grid to a blank state: removes all cell data and per-row/per-column metadata.
ClearData Removes all cell data while keeping the grid structure.
EndUpdate Ends an update block started with BeginUpdate.
RefreshData Invalidates the cached display value of one cell so it is fetched and formatted again.