Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the different?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00817137
Message ID:
00819178
Views:
9
Stephen,

>Since you are probably the who is going to answer my question, I might as well ask you directly. I have a combo box on my form and I have some code in the SelectedIndexChanged event. In this code I do something with the SelectValue property of the combo box. I bind both the BindingValueSourceMember and BindingSourceValueMember to an integer key in the table. SelectedIndexChanged event got fired when the form initialize, at this point SelectedValue contains a DataRow (this first row of my bound table). After the form initialized, when I change the selection on the combo box, SelectedIndexChanged event got fired again with SelectedValue containing the correct integer key.

You made a good choice to check the type. However, proving as usual she has a very large brain <s>, Cathi's made a good suggestion...I'll simply move the setting of the BindingSource below the setting of the ValueMember and DisplayMember in mmBindingStrategy.BindData() so you won't have to perform the type check in future versions of MM .NET.

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
Previous
Reply
Map
View

Click here to load this message in the networking platform