Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [SOLVED] GridCtrl: how to get row and column of the clicked cell
[SOLVED] GridCtrl: how to get row and column of the clicked cell [message #60617] |
Mon, 03 June 2024 19:03  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
it should be easy but I cannot find the correct way. After grid.WhenLeftClick I do
void TournamentTiebreakDlg::SetTB()
{ int row = grid.GetCurrentRow();
if (row<0) return;
int col = grid.GetColumn(row).GetNumber();
Exclamation( AsString(row) + " " + AsString(col));
}
but the program does not show the clicked column. What it the right method?
Thanks,
Luigi
[Updated on: Tue, 04 June 2024 06:50] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun Jun 15 19:25:36 CEST 2025
Total time taken to generate the page: 0.04967 seconds
|