Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.AddButton Method

Turns a cell into a button cell.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Overloads

Overload 1

Turns a cell into a button cell.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddButton(ACell: TTMSFNCDataGridCellCoord; AText: string = ''); overload;
void __fastcall AddButton(const TTMSFNCDataGridCellCoord &ACell, System::UnicodeString AText = System::UnicodeString())/* overload */;

Remarks

Handle OnCellButtonClick to respond to clicks. Same as SetButton.

Parameters

Name Description
ACell Target cell coordinate. Invalid coordinates are ignored.
AText Button caption; empty by default.

Overload 2

Turns the cell at the given column and row into a button cell; handle OnCellButtonClick to respond to clicks.

FMX.TMSFNCDataGrid.hppPascalC++
procedure AddButton(AColumn, ARow: Integer; AText: string = ''); overload;
void __fastcall AddButton(int AColumn, int ARow, System::UnicodeString AText = System::UnicodeString())/* overload */;

Parameters

Name Description
AColumn Zero-based column index.
ARow Zero-based row index.
AText Button caption text.