Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.SetButton Method

Turns the cell into a button cell.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Overloads

Overload 1

Turns the cell into a button cell.

GeneratedPascalC++
procedure SetButton(ACell: TTMSFNCDataGridCellCoord; AText: string = ''); overload;
void __fastcall SetButton(TTMSFNCDataGridCellCoord ACell, System::UnicodeString AText = System::UnicodeString());

Remarks

Handle OnCellButtonClick to respond to clicks. Revert with RemoveButton.

Parameters

Name Description
ACell Cell coordinate. Invalid coordinates are ignored.
AText Button caption, stored separately from the cell value.

Overload 2

Turns the cell at (AColumn, ARow) into a button cell.

GeneratedPascalC++
procedure SetButton(AColumn, ARow: Integer; AText: string = ''); overload;
void __fastcall SetButton(int AColumn, int ARow, System::UnicodeString AText = System::UnicodeString());

Parameters

Name Description
AColumn Zero-based column index.
ARow Zero-based row index.
AText Button caption, stored separately from the cell value.