private void ProcessDeletes(DataTable myDataTable, OleDbDataAdapter myDataAdapter)
{
DataTable xDataTable = myDataTable.GetChanges(DataRowState.Deleted); // Check the DataTable for errors.
if (xDataTable.HasErrors)
{
// Insert code to resolve errors.
} // After fixing errors, update the database with the DataAdapter
myDataAdapter.Update(xDataTable);
}
{
DataTable xDataTable = myDataTable.GetChanges(DataRowState.Deleted); // Check the DataTable for errors.
if (xDataTable.HasErrors)
{
// Insert code to resolve errors.
} // After fixing errors, update the database with the DataAdapter
myDataAdapter.Update(xDataTable);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货