delphic++buildervcltstringgrid

TStringGrid - is there a simple way to get the "current/selected" row?


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