Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Form Binding?
Message
 
To
03/06/2004 15:54:41
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00908254
Message ID:
00910943
Views:
15
Terry,

>Can I instantiate a biz obj and set it’s datarow property directly without calling a query like getdataset() and then bind to it as suggested in a prior reply.

You sure can...

>Would manually setting the datarow cause it to raise the bind event or how could I raise this event from my control code. Next is there a way to raise an event that would cause the controls to bindback without a call to SaveData()?

It wouldn't, but you can do this yourself in one of two ways:

1. You can call the form-level BindControl method to initally bind the control to data, and you can call either the form-level BindBack() method (for "regular" bound controls) or BindBackPropertyBoundControls() to bind back controls bound to properties of an object.

2. Manually raise any business object event by calling the business object's CallStateChange event. You can raise the Retrieved event to initally bind and the PreSaving event to bind back afterwards.

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
Reply
Map
View

Click here to load this message in the networking platform