Hi, May i know how to loop through the records of grid view that is in different page and populate it to another grid view that is on another page using c#?
This is my code, but I am not sure of how to continue.Thanks!
DataTable dtgvCriticalTerms = null; //Reflect the CT table in SQL Server
//get viewstate datatable to variable
DataTable dtSelectedContracts = (DataTable)ViewState[selectedContracts];
/*for loop all rows in dtSelectedContracts
* {
* String tempcontractid = dtSelectedContracts[0] first column (contract id)
* got to database and retrieve critical terms for tempcontractid
* add database results to dtgvCriticalTerms
* }
*/
Thanks