When I execute stringgrid1.row := 1 , then the onclick event of the stringgrid is automatically fired.
I want to distinguish between setting the row index somewhere in my program (to highlight the row) and an actual rowclick by a user.
How can I test the difference in the click handler?
I tried if (Sender is TStringGrid) in the handler, but this returns true in both cases.