62,041
社区成员
发帖
与我相关
我的任务
分享
for (int i = 0; i <= GridView1.Rows.Count - 1; i++)
{
CheckBox cbox = (CheckBox)GridView1.Rows[i].FindControl("cb1");
if (true == CheckBox2.Checked)
cbox.Checked = true;
else
cbox.Checked = false;
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
RadioButton rb = (RadioButton)e.Row.FindControl("RadioButton1");
if (rb != null)
{
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
RadioButton rb = (RadioButton)e.Row.Cells[0].FindControl("RadioButton1");
if (rb != null)
{
}
}