要刷新页面 就OK了!!
Response.write(<script language='javascript'>this.location = this.location</script>);

解决方案 »

  1.   

    how did you bind the data to the DataGrid? did you forget to use 
    if (!IsPostBack)
    ?see an example here
    http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=dgEdit
      

  2.   

    有没有在PAGE_LOAD()时使用if (!IsPostBack) ?  如果漏了的话,肯定会出错的.
      

  3.   

    看看是不是你在Page_load内的初始化代码没有加"if(!Page.PostBack)" 吧?
    ,每次触发DataGrid1_UpdateCommand 事件,Page_Load事件也会触发的。,每次都初始化你的控件和变量,所以
      

  4.   

    我想是在PAGE_LOAD()时沒有使用if (!IsPostBack)