First I was wondering how to find which are the selected rows in a TStringGrid.
Selection.top and Selection.bottom obviously would not do, because if rows №1,2 and 5 are selected, top would be 1 and bottom would be 5, and I would have the fake results 3 and 4 into the array.
Then I found out that I cannot select rows №1,2 and 5- holding the shift key allows me to select top to bottom (or vice versa), but holding the Control key and clicking on a row (cell) occurs to clean the previously selected rows.
How can I solve this situation?