Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why this cast in mmbindingstrategy.cs?
Message
 
To
31/08/2004 11:49:38
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00937866
Message ID:
00938272
Views:
26
Max,

>In the Validated methods for the textbox and combo I refresh the child grid control and I can see the entered values in the grid. When I click the Save button everthing seems to be working. I have a HookPreSave in my form where I look at the datarows of the Carrier object. The new row and the new values are there. In my CheckRulesHook of the carrier class I can see that the new values there as well. BUT BUT BUT when the save is all done SQL-Server shows that the new row has nulls in both the carrier_number and channel_number columns.

Actually, it sounds like your frustration may be due to the ADO.NET "EndEdit" issue. Unfortunately, in Windows Forms, you must issue an EndEdit on the current DataRow in order for changes to be saved to the back end.

We have a few MM .NET Help topics that help you deal with this:

Data Access FAQ: "Why doesn't my data get saved to the back end?"
"AutoEndEdit: Automatically Ending Pending Edits"

I recommend setting your business object's AutoEndEdit property to True to see if this fixes the problem.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform