Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.SetGrid Method

Makes a cell host a nested sub-grid renderer and returns it.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Overloads

Overload 1

Makes a cell host a nested sub-grid renderer and returns it.

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

Remarks

Same as AddGrid. The nested renderer is owned by the cell; do not free it. Configure its rows, columns and content after the call.

Parameters

Name Description
ACell Cell coordinate that will host the sub-grid.

Returns

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

Overload 2

Makes the cell at the given column and row host a nested sub-grid renderer and returns it.

FMX.TMSFNCDataGrid.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; do not free it.

Parameters

Name Description
AColumn Zero-based column index.
ARow Zero-based row index.

Returns

A new nested renderer, the existing one when the cell already hosts a sub-grid, or nil when the coordinate is not a valid cell.