Skip to main content
Table of Contents

TTMSFNCDataGrid.SetButton Method

Replaces the existing cell content with a button cell having the given caption.

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

Overloads

Overload 1

Replaces the existing cell content with a button cell having the given caption.

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

Parameters

Name Description
ACell Target cell coordinate.
AText Button caption text.

Overload 2

Replaces the existing cell content at the given column and row with a button cell.

FMX.TMSFNCDataGrid.hppPascalC++
procedure SetButton(AColumn, ARow: Integer; AText: string = ''); overload;
void __fastcall SetButton(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.