-
Data Bound Form Issue
Here is my situation. I have a form with controls bound to fields in a dataset (dsData) which was filled by a data adapter (daData). I modify the data in one of the bound controls and leave the control. The field in the datarow has now changed to match the value in the bound control. The dataset's HasChanged property is still false (I know, it gets updated when the row position changes). If I now do a daData.Update(dsData) the database does not change. It only updates if I change the row position and then run the update. My table in the dataset is only being filed with 1 row (for example: the order record in an order/order details dataset). How do I get the update to modify the database without forcing a change in row position?
...joe
-
Figured it out. I need to do a EndEdit on the current datatrow and then the update works.
This forum is the best. All I have to do is post a problem and within an hour or two I can figure out a solution
...joe
Similar Threads
-
By max caber in forum .NET
Replies: 0
Last Post: 01-16-2002, 11:21 AM
-
Replies: 0
Last Post: 02-01-2001, 04:02 AM
-
By Derek Robinson in forum VB Classic
Replies: 0
Last Post: 11-19-2000, 06:22 PM
-
By lorin in forum VB Classic
Replies: 0
Last Post: 11-16-2000, 03:46 PM
-
By Dave Kraft in forum VB Classic
Replies: 3
Last Post: 10-10-2000, 04:15 PM
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