bool b = ((CheckBox)GridView1.Rows[i].Cells[0].Controls[0]).Checked; if(b) { string strid=(string)GridView1.Rows[i].Cells[1].Text; cusidlist.Add(strid); }
GridView1.Rows[i].Cells[0].Controls[0].
GridView1.Rows[i].Cells[0].Controls[0])
sarath.mk wrote:Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.CheckBox'.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)