???
什么意思?选中txtCheckOK
让Description/Comments列里面的TextBox都只读?

解决方案 »

  1.   

    GridView1_RowDataBound  在行里找到你的 checkbox 给 把 itemindex 传给 前台用Jquery框架写的事件
    具体事件自己写 。(如果不想用Jquery 也可以直接使用javascript的Dom对象操作执行)
      

  2.   

    <asp:CheckBox ID="txtCheckOK" />在代码中添加事件.<asp:CheckBox ID="txtCheckOK" OnCheckedChanged="txtCheckOK_CheckedChanged" AutoPostBack="True"/>        protected void txtCheckOK_CheckedChanged(object sender, EventArgs e) {
                for (int i = 0; i < GridView1.Rows.Count; i++) {
                    CheckBox chk = (CheckBox)GridView1.Rows[i].FindControl("txtCheckOK");
                    TextBox txt = (TextBox)GridView1.Rows[i].FindControl("txtMohm");
                    if (chk.Checked)
                        txt.Enabled = false;
                      else
                        txt.Enabled = true;
                }
            }