troubleshooting Question combobox bind on value

Avatar of taz8020
taz8020Flag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingVisual Basic.NETVisual C++.NET
5 Comments1 Solution355 ViewsLast Modified:
Hi I have a combobox and filling it as follows

PricingStyleComboBox.Items.Add(New ComboBoxAddItem(0, "Simple"))
PricingStyleComboBox.Items.Add(New ComboBoxAddItem(1, "Simple and Quantity"))
PricingStyleComboBox.Items.Add(New ComboBoxAddItem(3, "Set Prices"))
PricingStyleComboBox.Items.Add(New ComboBoxAddItem(4, "Prices With Quantity"))

question is how do I use this as a bound cobobox. that is when the form loads show the correct value and if its changed update the form. At the moment gone about this the long way and said in the load event lookup value and on the index changed event update. There must be a quick way of doing this like if it was bound to a datatable. but think filling a datatable and then binding it is still over kill.
I would have thought setting the selectedvalue would have hone it but no.
Please help.
Meir Rivkin
Full stack Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros