Click here to Skip to main content
15,940,246 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Copy a row of Grid View to another Grid View using Object Data Source
click select
or
select and clicked a button
and copy selected one or two

VB
demo/sample please
i am amateur
Posted
Updated 12-Mar-14 0:49am
v2

1 solution

create a DataTable object globally with columns like in GridView..

After selecting a row, and in button click,

Button Click,

1) Iterate through the GridView Rows.
2) Get checkbox control id and see whether it is checked or not.
3) If checked, create DataRow object, and pass GridViewRow values to DataRow and add it to DataTable.
4) Finally, Add the DataTable to the second GridView.
 
Share this answer
 

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