Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messed up data bindings
Message
From
30/06/2005 18:10:39
 
 
To
20/06/2005 09:01:19
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01024813
Message ID:
01027930
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform