G
Guest
I have set DataAdapter.AcceptChangesDuringUpdate = true;
However, I find that I still need to call AcceptChanges on the associated
DataTable,
DataTable.AcceptChanges();
Has anyone encountered that? Am I not setting this field properly?
The following are some of the snippets of the codes which may help explain
what I was doing,
//Setting DataAdapter.AcceptChangesDuringUpdate
{
....
jobListDataAdapter = new
System.Data.OleDb.OleDbDataAdapter(commandString, oOleDbConn);
oOleDbCommandBuilder = new
System.Data.OleDb.OleDbCommandBuilder(jobListDataAdapter);
jobListDataTable = new System.Data.DataTable("Job List
Access DataTable");
jobListDataAdapter.AcceptChangesDuringFill = true;
jobListDataAdapter.AcceptChangesDuringUpdate = true;
jobListDataAdapter.Fill(jobListDataTable);
....
}
Thanks,
However, I find that I still need to call AcceptChanges on the associated
DataTable,
DataTable.AcceptChanges();
Has anyone encountered that? Am I not setting this field properly?
The following are some of the snippets of the codes which may help explain
what I was doing,
//Setting DataAdapter.AcceptChangesDuringUpdate
{
....
jobListDataAdapter = new
System.Data.OleDb.OleDbDataAdapter(commandString, oOleDbConn);
oOleDbCommandBuilder = new
System.Data.OleDb.OleDbCommandBuilder(jobListDataAdapter);
jobListDataTable = new System.Data.DataTable("Job List
Access DataTable");
jobListDataAdapter.AcceptChangesDuringFill = true;
jobListDataAdapter.AcceptChangesDuringUpdate = true;
jobListDataAdapter.Fill(jobListDataTable);
....
}
Thanks,