Note that your variable names are unfortunate, as they hide properties of the grid. For loop variables you should probably use something like RowIndex and ColIndex to avoid the problem.
– mghie
2 Answers
35
votes
.Row for selected row, .Col for selected column
14
votes
Please have a look at TStringGrid.Row.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
RowIndex
andColIndex
to avoid the problem. – mghie