Hi Boki,
I am using a TNextGrid (V5) component with the [goHeader,goMultiSelect,goSelectFullRow] options set.
When I set a row programmatically (MyGrid.Selected[i] := True), the row looks selected and if I check the SelectedCount it returns a value of 1, but when I try to access the row using SelectedRow it returns -1 and generates a "List Index Out of Bounds (-1)" error.
If the row is then selected again by clicking on it, it works fine (SelectedRow returns the no of the row).
Is this a bug or am I doing something wrong?
Thanks,
Steve