Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmComboBox Binding Problem
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MmComboBox Binding Problem
Miscellaneous
Thread ID:
00804094
Message ID:
00804094
Views:
44
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.
Next
Reply
Map
View

Click here to load this message in the networking platform