Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Data Binding with BizObjs
Message
De
30/12/2003 15:49:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Control Data Binding with BizObjs
Divers
Thread ID:
00862959
Message ID:
00862959
Vues:
44
Hello all.

I'm working on a data-edit form that can be called in several different contexts.

Usually when create an edit form, I have an overloaded constructor that accepts the primary key of the record being added (or a contstant that represents -1 for adding new records). In this constructor, I create and register the primary biz obj (BEFORE the InitializeComponent() call :) ). Then I tell the biz obj to either get the data or create a NewRow(). This is working fine in every form I've done so far.

The form I'm currenly working on needs to be able to use a bizobj that already exists. I pass it in via another overload of the constructor, and register it like normal. The problem I'm seeing is that the controls apparently aren't binding to the data. When I call the same form via the 'normal' implementation (see above), it works just fine. When I pass in a BizObj and register that as the form's PrimaryBizObj, the controls appear empty.

Through the debugger, I've confirmed that the biz obj's dataset is populated. This BizObj was already registered (not as primary) with another form prior to being passed into this form. Will registering the same BizObj instance with 2 forms cause a problem?

Thanks for any help.

-Nate
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform