Hi exterts,
my req is in my gridview i have some records and each record having checkbox. if i want to select 1 checkbox and click on button that record move into another table.......
give me reply..
bye
Selected record in gridview move to another table?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
SenthilkumarRank #387 · 6.5K pointsPosted Apr 7, 2012, 8:19 PM EDT
You need to iterate the grid after selecting some rows in the main grid.
If the items are selected then it should be identified and added those results into the datatable.
After adding all the selected rows, you need to bind it into another gridview control.
gvSubGrid.DataSource = dt;
gvSubGrid.DataBind();
Hope this help you.
Veera Chenna26 pointsPosted Apr 9, 2012, 5:32 PM EDT
http://technico.qnownow.com/2012/04/10/copy-rows-from-asp-net-gridview-control-to-a-sql-server-table/