Skip to main content
Table of Contents

TTMSFNCDataGridCell.ReInitialize Method

Recycles this cell for another coordinate and data item without creating a new object.

API unit family: TMSFNCDataGridCell Declaring type: TTMSFNCDataGridCell

Syntax

FMX.TMSFNCDataGridCell.hppPascalC++
procedure ReInitialize(ARect: TRectF; AColumn, ARow: Integer; AData: TTMSFNCDataGridCellItem; AKind: TTMSFNCDataGridCellKind; ARoot: TObject);
void __fastcall ReInitialize(const System::Types::TRectF &ARect, int AColumn, int ARow, TTMSFNCDataGridCellItem* AData, TTMSFNCDataGridCellKind AKind, System::TObject* ARoot);

Remarks

Clears the cached control bitmap, detaches and releases a live control from the previous position, drops the assigned Control, and resets Scale, DrawElements, the sort indicator, filter button, comment, and control placement to their defaults. The built-in control and the Layout object are kept; the grid fills in the new state afterwards.

Parameters

Name Description
ARect New cell rectangle in the grid's local coordinate space.
AColumn New zero-based column index.
ARow New zero-based row index.
AData New cell data item; can be nil.
AKind New role of the cell in the grid layout.
ARoot Grid renderer that owns the cell.