Hello,
Is there a way to know which mouse button has been used when the double click events (DoubleClickRow, DoubleClickCell...) fire? So far, I didn't find any... This is really annoying to have the same behaviour for every button!
Best regards,
Damien
If the events don't expose the button, then you will probably need to store the last button clicked in the MouseDown event and use that.
I am trying to work out in during the ClickCell event if it has occured due to left click.
From the suggestion above, I don't understand why the users of the control need to maintain the state of Mouse. The control exposes 'MouseButtons' property . So at any point if I want to check this MouseButton state are inspect this property. Why is this not available on the grid?
How do I reset the state? MouseUp event. Then I have to track if the move has left the control.