使用dataSet,dataAdapter在对一行数据进行删除时,就出现这个问题了,代码如下:
   DataRow deleteRow=this.ds.Tables["student"].DefaultView[this.Navigator.Position].Row;
   deleteRow.Delete();
   this.ds.AcceptChanges();
   this.da.Updata(ds.GetChanged(),"student");