i need to drag rows representing files from a datagridview, and be able to drop them to any windows application as if i was doing a drag from the windows explorer, and i’m a little bit confused regarding the procedure to follow.
For the moment i have the following event handler
private void gridFiles_MouseDown(object sender, MouseEventArgs e)
{
gridFiles.DoDragDrop(gridFiles.SelectedRows.Count, DragDropEffects.Move);
}
The thing is that i also need to be able to drop the rows into a control inside my application, and that in this case i would like to be able to get application specific information about the rows.
I finally figured it out. The procedure is as follows :
Sample code :