Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding items to combobox
Message
 
To
05/10/2005 10:12:33
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01054999
Message ID:
01056273
Views:
41
>How come when I fill the combobox by binding it to a datatable, I can't programatically change which item I want displayed? I tried changing .selectedtext, .selecteditem,
>.text, and using .FindStringExact, but I can't make it change the value.

Mike,
I would use a BindingManager to control the selected item in the combo if the datasource was set to a datatable. When I think about it I think that is the only way to do it. The bindingManager kinda acts like the record pointer in VFP and keeps trach of the "current" record in the datatable. If the "record pointer" is moved so will the selected item in the bound combo.

Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform