TTMSFNCDataGridRenderer.SetCheckBox Method
Turns the cell into a checkbox cell with the given checked state.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Overloads
Overload 1
Turns the cell into a checkbox cell with the given checked state.
procedure SetCheckBox(ACell: TTMSFNCDataGridCellCoord; AValue: Boolean = False); overload;
void __fastcall SetCheckBox(TTMSFNCDataGridCellCoord ACell, bool AValue = false);
Remarks
The checked state is stored separately from the cell value; read or change it through TTMSFNCDataGridData.Booleans. OnCellCheckBoxChange fires when the user toggles it. For a check state that follows the cell value, use SetDataCheckBox.
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate. Invalid coordinates are ignored. |
AValue |
Initial checked state. |
Overload 2
Turns the cell at (
AColumn,ARow) into a checkbox cell with the given checked state.
procedure SetCheckBox(AColumn, ARow: Integer; AValue: Boolean = False); overload;
void __fastcall SetCheckBox(int AColumn, int ARow, bool AValue = false);
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
ARow |
Zero-based row index. |
AValue |
Initial checked state. |