"系统提示是EditCommandColumn 里没有CanceText="Cancel"属性"
那就是说你不能在
<asp:EditCommandColumn ..>
里添加这个
CanceText="Cancel"这个属性
……

解决方案 »

  1.   

    例如:
    <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="列1" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
      

  2.   

    谢谢各位,小弟彻底明白了,我还有个问题
    myCommand.CommandText = "Update tr Set Name='"+txtName.Text+"',addr='"+txtAddr.Text+"' where id='"+sss+"' ";
    其中,我做的是更新的小程序,取得是文本输入框里的值,我用"+txtName.Text+"'对么
    可是系统提示的找不到类型或命名空间名称“txtName”(是否缺少 using 指令或程序集引用?)
    是什么意思??