I can go the long way round, loop over each row, get a TRect
from CellRect(col, row)
, then query its State
for gdSelected
...
But isn't there a quicker way to get the row number of the currently selected row, if any?
I can go the long way round, loop over each row, get a TRect
from CellRect(col, row)
, then query its State
for gdSelected
...
But isn't there a quicker way to get the row number of the currently selected row, if any?
.Row for selected row, .Col for selected column
With FMX, I'm using StringGrid1.Selected
, but I changed property >> Options > RowSelect = true
© 2022 - 2024 — McMap. All rights reserved.
RowIndex
andColIndex
to avoid the problem. – Ready