Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Create/Manipulate Data without using controls?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01162428
Message ID:
01162679
Views:
11
>DataRow rw = this.oPsTest.NewRow();
>rw["keyno"] = 1234;
>this.Save();
>The insert fails because keyno is not getting the desired value.

I'm assuming this code is inside a WebForm/WinForm and oPsTest is your BizObj. My guess is you have a control that binds to "keyno" and when you call this.Save() the binding mechanism accesses the value of that control and puts it into "keyno" overriding your code above.

This may be a solution:
DataRow rw = this.oPsTest.NewRow();
rw["keyno"] = 1234;
RaiseBubbleEvent(this, new OakLeaf.MM.Main.Web.UI.mmRegisterBoundControlEventArgs());
this.Save();
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform