TTMSFNCDataGridRenderer.AddButton Method
Adds a button cell at the specified cell coordinate. Same as SetButton.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Overloads
Overload 1
Adds a button cell at the specified cell coordinate. Same as SetButton.
procedure AddButton(ACell: TTMSFNCDataGridCellCoord; AText: string = ''); overload;
void __fastcall AddButton(const TTMSFNCDataGridCellCoord &ACell, System::UnicodeString AText = System::UnicodeString())/* overload */;
Remarks
Invalid coordinates are ignored. Handle OnCellButtonClick to respond to clicks.
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate that receives the button cell. |
AText |
Button caption. An empty string creates a button without a caption. |
Overload 2
Adds a button cell at the specified column and row.
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 that receives the button cell. |
ARow |
Zero-based row index that receives the button cell. |
AText |
Button caption. An empty string creates a button without a caption. |