February 7th, 2013, 07:42 AM
datagridview drag and drop
Question - I am creating a mapping application that needs to drag N rows from a datagridview to an item in a list box. Essentially a user should be able to select any amount of rows from this datagridview, highlight them, and then drag and drop on an item in the list box. In the list box there would be Group A, Group B and Ungrouped. Each time you select a new item in the list box the datagridview rows will change to the rows in the Group selected in the list box.
I have a feeling that it will be a solution using the on mouse down event, on mouse move event, on mouse up event and grabbing the selected datagridview items. The only event I am not sure of is when you do mouse up how do you get what list item you are currently hovering on....
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!