c**t 发帖数: 2744 | 1 My app display/modify a table (test) in an Access file.
Added the access file as a new dataset, VS2005 automatically created the
datatableadaper and etc.
now: the following code to update the access but failed:
...btn_Click(..)
{
this.testBindingSource.EndEdit();
db1DataSet.testDataTable modifiedRecs = (db1DataSet.testDataTable)this.
db1DataSet.test.GetChanges(DataRowState.Modified);
if( modifiedRecs != null)
{
this.testTableAdapter.Update(modifiedRecs) | c**t 发帖数: 2744 | 2 The same code worked for SQL Server. Is this a bug of the Jet adapter?
【在 c**t 的大作中提到】 : My app display/modify a table (test) in an Access file. : Added the access file as a new dataset, VS2005 automatically created the : datatableadaper and etc. : now: the following code to update the access but failed: : ...btn_Click(..) : { : this.testBindingSource.EndEdit(); : db1DataSet.testDataTable modifiedRecs = (db1DataSet.testDataTable)this. : db1DataSet.test.GetChanges(DataRowState.Modified); : if( modifiedRecs != null)
|
|