vb.net - Datagridview allow double click edit while being able to drag and drop -


i have datagridview need able drag , drop file treeview in case want move file different location, able double click in first , 3 columns , still able modify text in these columns row.

currently code drag , drop information datagridview treeview control works perfect. however, since i'm using mousedown i'm not able double click in box edit since being caught.

here code in datagridview mousedown

private sub datagridview1_mousedown(byval sender object, byval e mouseeventargs) handles datagridview1.mousedown         if datagridview1.currentrow nothing exit sub          if e.button = mousebuttons.left , datagridview1.currentcell.columnindex < datagridview1.columns.count - 1              drageditemtext = datagridview1.rows(datagridview1.currentcell.rowindex).cells(0).value.tostring             drageditemext = datagridview1.rows(datagridview1.currentcell.rowindex).cells(1).value.tostring             drageditemrowindex = datagridview1.currentcell.rowindex              datagridview1.dodragdrop(drageditemtext, dragdropeffects.copy)          end if end sub 

edit clarification - want them able edit column's 1 , 3, able click , drag column move in treeview. possible? i'm assuming if possible need setup type of flag if double mouse click force modification of column's text? , if happens make mousedown checks flag , determines nothing in mouse down trigger? best way that?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -