TStringGrid - is there a simple way to get the “cu

2019-02-21 11:15发布

问题:

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.