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:
00817184
Views:
20
Cathi

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.

This is a strange situation that the type of the property is changing in runtime. I added a type check in my code so the code would run but I shouldn't need to do that.
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform