//绑定DataSet到DataGrid1
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
DataView dv ;
dv = new DataView( ds.Tables["notice"]);
dv.RowFilter = "id= " +e.Item.Cells[0].Text.Trim();
if (dv.Count > 0)
{
dv.Delete(0);
}
if (ds.HasChanges())
{
oleDbDataAdapter1.Update(ds,"notice"); //该句也能执行到,就是更新不了数据库
}