Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.AddCheckBox Method

Adds a checkbox cell at the specified cell coordinate. Same as SetCheckBox.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Overloads

Overload 1

Adds a checkbox cell at the specified cell coordinate. Same as SetCheckBox.

FMX.TMSFNCDataGridRenderer.hppPascalC++
procedure AddCheckBox(ACell: TTMSFNCDataGridCellCoord; AValue: Boolean = False); overload;
void __fastcall AddCheckBox(const TTMSFNCDataGridCellCoord &ACell, bool AValue = false)/* overload */;

Remarks

The checked state is stored separately from the cell value and is read or written through TTMSFNCDataGridData.Booleans. Invalid coordinates are ignored. To bind the check state to the cell value instead, use AddDataCheckBox.

Parameters

Name Description
ACell Cell coordinate that receives the checkbox cell.
AValue Initial checked state; True creates a checked checkbox.

Overload 2

Adds a checkbox cell at the specified column and row.

FMX.TMSFNCDataGridRenderer.hppPascalC++
procedure AddCheckBox(AColumn, ARow: Integer; AValue: Boolean = False); overload;
void __fastcall AddCheckBox(int AColumn, int ARow, bool AValue = false)/* overload */;

Parameters

Name Description
AColumn Zero-based column index that receives the checkbox cell.
ARow Zero-based row index that receives the checkbox cell.
AValue Initial checked state; True creates a checked checkbox.