i am facing some problem to store ids of checkboxes which are using in gridview.
for example:-
below is a gridview where page index is true. there are total 8 records. it will display 4 in 1st page of grid view & rest will in other.
| ID | |||
1st cell is a template field of checkboxes.
this is a page 1 of2
similarly,
| ID | |||
whenever I'll check "; " from 1st & "; " from other page of gridview.
then it should display all 4 checkboxes selected row IDs into other webpage.
how can i do this?
please help me.
thank you

Priyank KharePosted Aug 14, 2012, 4:02 AM
can you please provide me code..
if you can, then please please provide me code for this..
.
thank you
Sukesh MarlaPosted Aug 14, 2012, 1:38 AM
1.In your Datatable create Column called ISChecked with boolean type
2.Change TemplateField Checkbox as
ON paging
1.Loop through the gridview rows and using FindControl method of GridViewRow Find Checkbox.
2.Create Persistent Medium Like ViewState or Session(We call it CheckedStates) and store all checked values into it.
Each time you Rebind GridView and Call Databind method make sure to update the DataTable isChecked values fro every row with Values in CheckedStates)
Your Response is important to use. Please Check This is Currect Answer, if it helped
andrew pattinsonPosted Aug 14, 2012, 1:19 AM
Gridview1.datasource = List;
Gridview1.databind();
For more read it http://www.dapfor.com/en/net-suite/net-grid/tutorial