Click here to Skip to main content
15,993,805 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello To All,
Here IS my One Question I Have 2 DataGridView on my Win form DataGrid1 and Datagrid2.
I Want to Drag And Drop Selected Row Data From DataGrid1 on DataGrid2.My datagrid1 is Bound with Database and Datagrid2 is empty where i want to copy data from datagrid1. And i also want temporary remove those row which i Select from datagrid1 How It Can Possible.
Thanks In Advance
Posted
Updated 29-Apr-12 21:27pm
v3
Comments
[no name] 28-Apr-12 10:03am    
What have you tried? What errors are you getting? Where is the code that demonstrates your problem?
Maciej Los 28-Apr-12 10:34am    
Grid - you mean DataGridView?
imransandh 30-Apr-12 2:47am    
Yes I Mean DataGridView

First, read the example in this:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.dodragdrop.aspx[^]
and then, implement yourself requirement.
 
Share this answer
 
few events that you may like looking into are

DragEnter DragLeave

AllowDrop-------> true

try to handle these and you may get what you need

Best of luck..........
 
Share this answer
 
Comments
Maciej Los 28-Apr-12 10:58am    
Please carefully read question: "My datagrid1 is Bound with Database". The OP is asking for "how to temporary remove (dragged-dropped) row from datagrid1". After that, improve your solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900