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?

Was it helpful?

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
scroll top