TTMSFNCDataGrid.AddCheckBox Method
Turns a cell into a checkbox cell.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Turns a cell into a checkbox cell.
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 Booleans; OnCellCheckBoxChange fires when the user toggles it. To derive the state from the cell value instead, use AddDataCheckBox.
Parameters
| Name | Description |
|---|---|
ACell |
Target cell coordinate. Invalid coordinates are ignored. |
AValue |
Initial checked state; False by default. |
Overload 2
Turns the cell at the given column and row into a checkbox cell whose state is stored in Booleans.
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. |
ARow |
Zero-based row index. |
AValue |
Initial checked state of the checkbox. |