gstelmack
06-26-2005, 03:09 PM
I'm trying to do a bit of ADO.NET programming using C# in the Visual Studio.NET 2005 Beta 2 edition. I've got an Access database that I am reading into a DataGridView that displays all the rows nicely. My problem is that I cannot actually CHANGE the contents of the database. I'm attempting to manually add and delete rows, but while I can get the DataSet to change (and the corresponding GridView to update), I can't get my changes committed back to the database. Calling "AcceptAllChanges" does not seem to have any effect. Deleting rows within the GridView has no effect either.
This is my first foray into ADO.NET, so I'm probably missing something obvious (if not running into a bug in Beta 2). My only book at the moment is "Introducing Microsoft ASP.NET 2.0", so it's ADO chapters are geared more towards web development.
I figure I'll come across the answer within 15 minutes of posting this (half the time this is the best way to figure something out http://dynamic.gamespy.com/%7Efof/forums/images/smilies/wink.gif ), but if anyone has more experience with ADO.NET that can point me in the right direction, I'd be grateful.
This is my first foray into ADO.NET, so I'm probably missing something obvious (if not running into a bug in Beta 2). My only book at the moment is "Introducing Microsoft ASP.NET 2.0", so it's ADO chapters are geared more towards web development.
I figure I'll come across the answer within 15 minutes of posting this (half the time this is the best way to figure something out http://dynamic.gamespy.com/%7Efof/forums/images/smilies/wink.gif ), but if anyone has more experience with ADO.NET that can point me in the right direction, I'd be grateful.