Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmComboBox Binding Problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmComboBox Binding Problem
Divers
Thread ID:
00804094
Message ID:
00804094
Vues:
45
I was fighting getting the combo box to bind today (as specified in BindingValueSource / BindingValueSourceMember). Finally found a solution, but not sure if it's a problem in the framework or a problem with the way I'm trying to use the framework. The scenario:

Created a form for add/edit only
If you instantiate the form and call Edit() method, an appropriate GetData function is executed against the business object for the passed ID.
If you instantiate and call New() method, NewRow() is executed against the business object.

Here's the problem. The mmComboBox issues an OnBindData when the state == Retrieved, but does NOT do an OnBindData when state == Added.

Should it?

Anyhow, I worked around this for now by issuing a CallStateChange(Retrieved) immediately after the NewRow() call.
Ryan Katri
COB System Designs, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform