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:
01162785
Views:
12
>
>>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();
>
I am not using a control that binds to keyno. The value that I am supposed to store in keyno is generated by the system. That's usually my problem here: if I do not use control that binds to columns, I can not manipulate data the way it should.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform