Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Select and drag a datagridview row with a single click

$
0
0
Hi

I have a DataGridView, with a context menu, that also is the source for a number of drapdrop operations.  I am using the "FullRowSelect" mode.

At the moment, to get the context menu to operate on the right row, the left button must be pressed, to highlight the row, and then the context menu will act on the correct row.  In a simmilar way, with DragDrop, the mouse button must be pressed again to select the row before it can be dragged.  It is important that the row is selected, because in both cases I use values from the SelectedRows collection to process the data.

What I need is a way where the row can be clicked and dragged with a single click.

Is this possible?

Thanks
Guy Joseph - Intel Quad Q9450, 4Gb Ram, 1Tb Hard Drive, NVidia 8800GT, Marian Marc 8, VB Express 2008

Viewing all articles
Browse latest Browse all 12583

Trending Articles



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