获取GirdView中的控件:
//单选
protected void chkDelete_CheckedChanged(object sender, EventArgs e)
{
CheckBox chkAll = this.gvHotCheck.HeaderRow.Cells[0].FindControl("chkAll") as CheckBox;
chkAll.Checked = false;
}
获取GirdView中的控件:
//单选
protected void chkDelete_CheckedChanged(object sender, EventArgs e)
{
CheckBox chkAll = this.gvHotCheck.HeaderRow.Cells[0].FindControl("chkAll") as CheckBox;
chkAll.Checked = false;
}
转载于:https://www.cnblogs.com/qq1040991197/archive/2012/07/09/2582798.html