Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messed up data bindings
Message
De
30/06/2005 18:10:39
 
 
À
20/06/2005 09:01:19
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01024813
Message ID:
01027930
Vues:
15
Mike,

As you found out, programmatically changing the SelectedIndex or the SelectedValue of a Combo does nothing to the underlying bound data. It's unfortunate, but that's the way it currently works. You'll have to change the data programmatically as well.

~~Bonnie



>Hello,
>
>I have a VB.NET Winform, and it has certain controls bound to a data table. I have a combobox that is bound to the data table, and I also have a checkbox that, when checked, it moves the index of the combobox to 0 and disables it. It looks like it successfully changes on the form, but when I look at my data table, it does not change successfully.
>
>When I manually click on the combobox and change the value, it works fine. It seems like when an event happens that sets the index of the combobox to anything else, the corresponding value in the data table does not change.
>
>Any advice would be appreciated! Thanks a lot!
>
>MAC
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform