Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I access the entity object from a textbox event?
Message
 
À
27/06/2008 19:28:37
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01327405
Message ID:
01328029
Vues:
10
>I have an event handler on a form that handles the validating event for a textbox on that form. From within that event handler method I need to access the entity object property that the textbox is bound to. Can somebody please help me with some code that would allow me to do that.

You can get a reference to the business object specified in the BindingSource property of the control, then access that business object’s Entity object. For example:
mmBusinessObject BizObj = (mmBusinessObject)mmAppDesktop.FormMgr.GetControlBizObj(this);
For details, check out the MM .NET Dev Guide “Getting References to Registered Business Objects”.

Best 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