GridView里嵌套RadioButton单选

protected void rdbCheck_CheckedChanged(object sender, EventArgs e)
    {
        for (int i = 0; i < this.dgvUserGrouopList.Rows.Count; i++)
        {
            ((RadioButton)this.dgvUserGrouopList.Rows[i].FindControl("rdbCheck")).Checked = false;

        }
        ((RadioButton)sender).Checked = true;

    }

 

posted @ 2014-04-24 23:48  狰狞蛋子  阅读(137)  评论(0编辑  收藏  举报