|
-
Help with OleDbDataAdapter Update
So I created a C# Windows Application using VS .NET 2005. I am connecting to a simple Access Database that has two columns. I placed a DataGridView on the form. I connect with the database successfully. Data rows are read correctly into the grid view via TableAdapter.Fill in form load. Then upon exit, I call TableAdapter.Update(DataSet.Table). That succeeds. In fact, Update returns the number of updated rows. I tested with modifying one row, it returns 1 or modifying four rows it returns 4. I even did a loop displaying contents of DataSet.Table and verified in the debug window that the content is the updated content. Problem is data does not get persisted to the database. I open Access Database or relaunch the application and old data is still there. I searched over the internet and people were saying you need to set update command. Framework already does that for me. I found the code where update command is set.
Similar Threads
-
By Nomi in forum Database
Replies: 2
Last Post: 01-11-2007, 01:24 PM
-
By Lewis Keim in forum VB Classic
Replies: 0
Last Post: 06-04-2002, 10:13 AM
-
Replies: 0
Last Post: 05-08-2002, 01:12 PM
-
By Alwin in forum Database
Replies: 0
Last Post: 05-07-2002, 08:34 PM
-
By Chillu in forum VB Classic
Replies: 0
Last Post: 07-14-2000, 12:06 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks