Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.AddGrid Method

Creates a nested renderer grid in the cell identified by ACell and returns it. Equivalent to SetGrid.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Overloads

Overload 1

Creates a nested renderer grid in the cell identified by ACell and returns it. Equivalent to SetGrid.

FMX.TMSFNCDataGridRenderer.hppPascalC++
function AddGrid(ACell: TTMSFNCDataGridCellCoord): TTMSFNCDataGridRenderer; overload;
TTMSFNCDataGridRenderer* __fastcall AddGrid(const TTMSFNCDataGridCellCoord &ACell)/* overload */;

Remarks

The nested renderer is owned by the cell; do not free it. Use RemoveGrid to destroy it.

Parameters

Name Description
ACell Cell coordinate that will host the nested renderer.

Returns

The nested renderer assigned to the cell. When the cell already hosts a nested renderer, that existing instance is returned. Returns nil when the coordinate is not a valid cell.

Overload 2

Creates a nested renderer grid in the cell at (AColumn, ARow) and returns it. Equivalent to SetGrid.

FMX.TMSFNCDataGridRenderer.hppPascalC++
function AddGrid(AColumn, ARow: Integer): TTMSFNCDataGridRenderer; overload;
TTMSFNCDataGridRenderer* __fastcall AddGrid(int AColumn, int ARow)/* overload */;

Remarks

The nested renderer is owned by the cell; do not free it. Use RemoveGrid to destroy it.

Parameters

Name Description
AColumn Zero-based column index of the host cell.
ARow Zero-based row index of the host cell.

Returns

The nested renderer assigned to the cell; the existing one when the cell already hosts a nested renderer, or nil when the coordinate is not a valid cell.