查找gridview中的checkbox控件
foreach (GridViewRow c in GridView1.Rows)
{foreach (Control b in c.Controls)
{
foreach (Control d in b.Controls)
{
if (d.GetType() == typeof(CheckBox))
{
CheckBox cb = (CheckBox)d;
cb.Checked = true;
a++;
Response.Write("success"+a.ToString());
}
}
}
}