How to make dragdrop - mousedown & cell click work in same datagridview
Posted on 2011-10-05
I have a winform application written in VS 2010. It has two datagridviews on the form: Gridview1 and Gridview2. There is a checkbox column on Gridview1 in addition to other text columns. I recently added a dragDrop event to enable user to dragdrop rows from Gridview1 to Gridview2. However, I found the Click event is no longer evoked on gridview1 after I added MouseDown event to do dragdrop.
I understand that both Click cell and dragdrop actions evok the mouseDown event, but the chanllenge is how I can make the program to recognize these two different actions?
Any help is greatly appreciated.!!