Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the different?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00817137
Message ID:
00817184
Vues:
21
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
--------------------------------
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform