你为什么把它置为False?? 而且LB是什么? 

解决方案 »

  1.   


    Can you find you linkbutton as you way? if not, you can use the below code have a try.TextBox txtCalendarDate = (TextBox)grCalendar.Rows[e.RowIndex].FindControl("newCalendarDateEdit");
      

  2.   

    ]<asp:TemplateField HeaderText="Environment" >
            <ItemTemplate>
              <asp:DropDownList ID="envi_ddl" runat="server" >
            <asp:ListItem >aaa</asp:ListItem>
            <asp:ListItem >bbb</asp:ListItem>
        </asp:DropDownList>
            </ItemTemplate>
          </asp:TemplateField> 
    如果我用这个,可以获取到这个dropdownlisg的值,就用上述的方法,但是也是控制不了enable属性
      

  3.   

    别在页面上设置false,这样你后台设置了true之后加载页面的时候他又给你改成false了。
    在create,或者rowdatebound 的时候设置就o了。
      

  4.   

    rowdatabound不行,绑定后点edit仍然是enable=false
      

  5.   

    已解决 edit事件发生在bind事件之前