Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting reference to BizObj
Message
De
23/07/2003 16:21:16
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00812851
Message ID:
00812927
Vues:
10
John,

You need 2 things:

1. A form reference - Check out mmFormManager.GetParentForm(). (mmFormManager is in the Windows Forms project of the framework.) It takes a control as its parameter and determines which form the control is on. There are several methods in that object that get form references depending on your situation.

2. The name of the business object to which the control is bound. Each MM.Net control has just such a property for binding, usually called BindingSource. Use that in your call to the overload of the form's GetBizObject() that takes the string name of the business object.

Hope that helps,
---J


>How does a control on a form get a reference to the BizObj that created the dataset it's bound to?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform