Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.SetGrid Method

Makes the given cell host a nested renderer grid and returns it.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Overloads

Overload 1

Makes the given cell host a nested renderer grid and returns it.

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

Remarks

The nested renderer is owned by the cell data; do not free it. Configure its rows, columns and content after the call; use RemoveGrid to destroy it and Grids to retrieve it later.

Parameters

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

Returns

A new nested renderer when the cell has none yet, the existing nested renderer when it already has one, or nil when the coordinate is not a valid cell.

Overload 2

Makes the cell at (AColumn, ARow) host a nested renderer grid and returns it.

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

Remarks

The nested renderer is owned by the cell data; 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

A new nested renderer when the cell has none yet, the existing nested renderer when it already has one, or nil when the coordinate is not a valid cell.