Problem of DGV multi-row selection

  • Thread starter Thread starter YeJianWei
  • Start date Start date
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.
 
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.
 
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
 
Back
Top