kon_t 0 Newbie Poster

Hi,

I have an application where i want a datagridview to treat single mouse clicks as if they are ctrl_clicks. IE I when a user clicks on a row, the rows state is togled (eg not selected to selected or vice versa), without affecting any other rows.

So far the only way i have found to do this is to intercept the mouse down event and manually keep track of which rows were selected & ensure that the 'correct' rows remain selected. My code works, but there is a noticeable delay between the grid clearing the selected rows & my code reselecting them.

Ideally I want to 'trick' the grid into simply thinking the ctrl key was depressed when the mouse was clicked.

Any ideas anyone?


Thanks.