Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

dataGridView CellContentClick event causing mouse button hold

$
0
0

Hello,

I have a datagridview with a column of buttons. It works fine but what's 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 I've 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 doesn't take affect until after everything else finishes which doesn't work.

Interestingly if I do a debug break and start tracing through this doesn't happen.

Any help would be appreciated. Thanks.


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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>