E
Ed Warren
I'm trying to figure out how to use Ado.net with Visual Studio 2003.
I have a very, very simple setup.
Winforms:
Datagrid1 with a datasource set to datasetTest1
oledbconnection1 connected to an access database with one table
(appointments)
OleDbDataAdapter1 using OleDbConnection1
DataSetTest1 with one table (appointments) :: generated from
OleDbDataAdapter1
the application opens and fills the dataset (I can see the values in the
datagrid.
I edit the one of the values in the datagrid and that appears to work
When I run the code below to post back to the database I get an
OleDBConcurrency exception thrown (on the update command)
I have spent several hours trying to find out why and/or figure out how to
troubleshoot this.
Thanks
Ed Warren.
Try
OleDbDataAdapter1.Update(DataSetTest1)
DataSetTest1.AcceptChanges()
MessageBox.Show("The update was successful!")
Catch ex As Exception
MessageBox.Show("Update Failed", ex.GetType().ToString())
End Try
I have a very, very simple setup.
Winforms:
Datagrid1 with a datasource set to datasetTest1
oledbconnection1 connected to an access database with one table
(appointments)
OleDbDataAdapter1 using OleDbConnection1
DataSetTest1 with one table (appointments) :: generated from
OleDbDataAdapter1
the application opens and fills the dataset (I can see the values in the
datagrid.
I edit the one of the values in the datagrid and that appears to work
When I run the code below to post back to the database I get an
OleDBConcurrency exception thrown (on the update command)
I have spent several hours trying to find out why and/or figure out how to
troubleshoot this.
Thanks
Ed Warren.
Try
OleDbDataAdapter1.Update(DataSetTest1)
DataSetTest1.AcceptChanges()
MessageBox.Show("The update was successful!")
Catch ex As Exception
MessageBox.Show("Update Failed", ex.GetType().ToString())
End Try