Groups | Blog | Home
all groups > vb.net data > april 2004 >

vb.net data : Dataset/Datagrid/Update problems


Chris Barnard
4/28/2004 11:52:13 AM
Hi,

What's the correct way to add new rows of data to a dataset when using a
datagrid? It looks like if the user adds some new records on a datagrid, I
should be able to simply run the update command from my data adapter and the
extra data will get inserted. Is that correct?

I get the following error using this method:

'An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred
in system.data.dll'

Am I doing something wrong? My update statement seems fine, do I need to
force an insert to happen or something?

Thanks,

Chris.

Chris Barnard
4/28/2004 2:17:15 PM

[quoted text, click to view]

Don't worry, I figured it out after catching the error properly - it did
turn out to be a problem with my update statement.. I now have a concurrency
error instead!! argh!

Chris.

AddThis Social Bookmark Button