I'm looking for a way to deselect a selected DataGridViewRow when the user clicks on it. I have tried fiddling with the various click events of the DataGridView class, but the problem is that the SelectionChanged is fired before these, which causes obvious unintended behavior when the user is clicking a row not selected.
How can I obtain the behvior I want?