I don't think you can bind a combo box to a class. Most(I think all) controls can only be bound to lists. Meaning if in your class you have a property of any type that implements Collections.IEnumerable.
You could also make your class implement the IEnumerable. (Should that be the IList interface? Check what interface the combo box datasource expects to receive.)
Any object that implements the correct interface will be accepted.
You will have to fill out the code to the interface methods and properties for yourself. I have no idea how easy it is to cock up the control if you implement the interface incorrectly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.