Problem of DGV multi-row selection

Y

YeJianWei

Hi everyone

I have a problem of DataGridView's multi-row selection behavior.
When holding the ctrl key down and DGV's selecttionmode had set to
FullRowSelect, user could select multiple rows by click on those rows. And,
when user click on a row which already had been selected the row would been
deselected.

The problem is this select/deselect is based on "mouse down" event instead of
"mouse click" event, I mean even before user release the left key the row
already had been selected/deselected, which is not an ideal behavior to
initialize
a drag drop operation. So, my question is how could I alternate this default
behavior, thx.

Any suggestion is welcomed.
 
A

Andy O'Neill

YeJianWei said:
Hi everyone

I have a problem of DataGridView's multi-row selection behavior.
When holding the ctrl key down and DGV's selecttionmode had set to
FullRowSelect, user could select multiple rows by click on those rows.
And,
when user click on a row which already had been selected the row would
been
deselected.

The problem is this select/deselect is based on "mouse down" event instead
of
"mouse click" event, I mean even before user release the left key the row
already had been selected/deselected, which is not an ideal behavior to
initialize
a drag drop operation. So, my question is how could I alternate this
default
behavior, thx.

Any suggestion is welcomed.
I found several solutions when I googled on
datagridview drag drop multiple rows
The simplest wimped out and used right click to initiate drag drop.
 
Y

YeJianWei

Thank you, but drag drop with right mouse key is unacceptable to me...
And I also googled it with keywords: datagridview drag drop multiple rows
But, so far I failed to find a perfect solution, could you kind enough to
post the links to those solution? thx in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top