dataGridView CellContentClick event causing mouse button hold

  • Thread starter Thread starter kilimanj99
  • Start date Start date
K

kilimanj99

Guest
Hello,

I have a datagridview with a column of buttons. It works fine but whats annoying is whenever I click on a button it acts as if I am still holding the mouse button down and dragging a selection, thus highlighting all the rows I drag over while the button click event is running.


I have multirow and fullrowselect on but Ive tried others and as long as it is multiselect it selects wherever I drag the mouse. If I switch it to not multiselect it will not do this but if I switch it in the click event procedure it doesnt take affect until after everything else finishes which doesnt work.


Interestingly if I do a debug break and start tracing through this doesnt happen.


Any help would be appreciated. Thanks.


Life moves pretty fast. If you dont stop and look around once in a while, you could miss it.

Continue reading...
 
Back
Top