Skip to main content
Table of Contents

TTMSFNCDataGrid.AddRadioButton Method

Turns a cell into a radio button cell.

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

Overloads

Overload 1

Turns a cell into a radio button cell.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddRadioButton(ACell: TTMSFNCDataGridCellCoord; AValue: Boolean = False; AGroupIndex: Integer = 0); overload;
void __fastcall AddRadioButton(const TTMSFNCDataGridCellCoord &ACell, bool AValue = false, int AGroupIndex = 0x0)/* overload */;

Remarks

The selected state is stored separately from the cell value and is read or written through Booleans; OnCellRadioButtonChange fires when the user selects it.

Parameters

Name Description
ACell Target cell coordinate. Invalid coordinates are ignored.
AValue Initial selected state of the radio button.
AGroupIndex Group index for mutual exclusion among radio buttons.

Overload 2

Turns the cell at the given column and row into a radio button cell whose state is stored in Booleans.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddRadioButton(AColumn, ARow: Integer; AValue: Boolean = False; AGroupIndex: Integer = 0); overload;
void __fastcall AddRadioButton(int AColumn, int ARow, bool AValue = false, int AGroupIndex = 0x0)/* overload */;

Parameters

Name Description
AColumn Zero-based column index.
ARow Zero-based row index.
AValue Initial selected state of the radio button.
AGroupIndex Group index for mutual exclusion among radio buttons.