TStringGrid - is there a simple way to get the “current/selected” row?
-
24-06-2021 - |
Question
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?
Solution
.Row for selected row, .Col for selected column
OTHER TIPS
Please have a look at TStringGrid.Row
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow