List<T> lst=new List<T>(); // Create List to store Checked Rows values loop through all rows the gridview : ForEach(GridViewRow gRow in GridView1.Rows) { bool checked= ((CheckBox)e.Row.Cells[IndexOfCheckboxField].Controls[0]).Checked; if(checked) { //Create object to set values //get values using e.Row.Cells[index].Text and set the object //add the object to lst } } Session["Data"]=lst; //Store the lst in Session
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)