Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Form Binding?
Message
 
À
03/06/2004 15:54:41
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00908254
Message ID:
00910943
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform