Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I m new in asp.net and didn't understand how to display multiple row selected by checkbox of gridview in other page in gridview .plz hepl
Posted
Comments
In other page ? Unclear. Can you explain again and please post the code which you tried so far.
bh@r@t 1-Jun-13 4:01am    
i m trying to select some row which is in gridview through checkbox as i click the button show the selected row in another page

1 solution

For this, add the selected rows values in a new data table or data set that is common to all pages
then bind the data set values to grid view in another page

Eg:
C#
DataTable dt = new DataTable();  //Dynamic data table 
DataRow dr;

dt.Columns.Add(new DataColumn("ColumnName1"));  // ColumnName1 is select 
dt.Columns.Add(new DataColumn("ColumnName2"));
dt.Columns.Add(new DataColumn("ColumnName3"));

Then bind this data table in grid view in next page
 
Share this answer
 
v2

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