ASP.NET中获取GridView中的控件

获取GirdView中的控件:   

//单选
    protected void chkDelete_CheckedChanged(object sender, EventArgs e)
    {
        CheckBox chkAll = this.gvHotCheck.HeaderRow.Cells[0].FindControl("chkAll") as CheckBox;
        chkAll.Checked = false;
    }

posted @ 2012-07-09 15:15  Mr zhao  阅读(368)  评论(0编辑  收藏  举报