问题
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?
回答1:
.Row for selected row, .Col for selected column
回答2:
Please have a look at TStringGrid.Row.
来源:https://stackoverflow.com/questions/2107683/tstringgrid-is-there-a-simple-way-to-get-the-current-selected-row