Skip to main content
Table of Contents

TTMSFNCDataGrid.AddDataCheckBox Method

Turns a cell into a data checkbox cell: the check state is derived from, and written to, the cell value itself.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Overloads

Overload 1

Turns a cell into a data checkbox cell: the check state is derived from, and written to, the cell value itself.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddDataCheckBox(ACell: TTMSFNCDataGridCellCoord); overload;
void __fastcall AddDataCheckBox(const TTMSFNCDataGridCellCoord &ACell)/* overload */;

Remarks

Use this for Boolean data (for example a Boolean dataset field). Contrast with AddCheckBox, whose state is stored separately from the value.

Parameters

Name Description
ACell Target cell coordinate. Invalid coordinates are ignored.

Overload 2

Turns the cell at the given column and row into a data checkbox cell whose state follows the cell value.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddDataCheckBox(AColumn, ARow: Integer); overload;
void __fastcall AddDataCheckBox(int AColumn, int ARow)/* overload */;

Parameters

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