在GridView的“编辑列”选中某行之后,如何取消对这一行的选中GridView 编辑列

解决方案 »

  1.   

    protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)  
        {  
            GridView1.EditIndex = -1;  
            bind();  //重新绑定数据
       }  
      

  2.   

    //取消
        protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            GridView1.EditIndex = -1;
            bind();
        }