rDBGrid - How to create button

27 views
Skip to first unread message

Giuseppe Borgobello

unread,
Feb 25, 2025, 12:17:15 PMFeb 25
to Rosi Delphi Components
Hello Thomas and everyone, please can someone tell me how to get a button (or a whole column of buttons) inside rDBGrid.
The column contains text data and it would be nice if the button reported the cell value. By pressing the button I will then have to perform an action related to that specific row and column (cell)

Thanks
Giuseppe

Tomas Rosinsky

unread,
Feb 26, 2025, 7:45:13 AMFeb 26
to Rosi Delphi Components
Hi  Giuseppe, 
rDBGrid does not support showing of buttons directly in cell as usually row height is too small to show button and it looks very strange if it is used for whole column.

You have 3 possible solutions:
1/ use elipsis button in the right side of editor by column setting  (ButtonStyle=cbsEllipsis), but in this case button si visible only during editing of the cell
2/ use HTML link in the cell, then whole text is shown as link and event OnLinkClick can be used to evaluate the click to link
3/ show cell in some specific color and then evaluate event OnCellClick

I hope it helps
Tomas


Dne úterý 25. února 2025 v 18:17:15 UTC+1 uživatel g.borg...@cracra.it napsal:

Giuseppe Borgobello

unread,
Feb 26, 2025, 9:34:19 AMFeb 26
to Rosi Delphi Components
Hi Thomas,
I think I'll use your tip number 2

Thanks
Giuseppe

Reply all
Reply to author
Forward
0 new messages