Click here to Skip to main content
16,019,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,All

i am having two gridview, i want to drag and drop values one to another one gridview.

Eg:

i want to drog and drop gridview1 to gridview2 but i want keep which values i drag and drop.

Thank You...
Posted
Comments
prasanna.raj 23-Sep-14 8:04am    
http://www.fryan0911.com/2013/04/drag-and-drop-between-gridviews-in.html

1 solution

 
Share this answer
 
v2
Comments
prasanna.raj 23-Sep-14 6:57am    
second link is when i drog rows from 1st grid it removed, after that only it added to second grid, i not well in jQuery,...

<script type="text/javascript">
$(function () {
$(".drag_drop_grid").sortable({
items: 'tr:not(tr:first-child)',
cursor: 'crosshair',
connectWith: '.drag_drop_grid',
axis: 'y',
dropOnEmpty: true,
receive: function (e, ui) {
$(this).find("tbody").append(ui.item);
}
});
$("[id*=gvDest] tr:not(tr:first-child)").remove();
});
</script>
Gihan Liyanage 23-Sep-14 7:33am    
Check the updated Answer. I have provided an other link

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