CollectionBase child not working properly with comboboxes

D

Don

I created a class that inherits CollectionBase. It is strongly typed, only
accepting objects of a specific type. Everything works fine except when I
bind the custom collection object to a combobox. Each item in the combobox
just shows the name of the type of the objects in the list, not the result
of the ToString() method for each object in the list. Does anyone know
what's going on with this or how to fix it?

- Don
 
D

Don

I figured out what I did wrong. I was overriding the ToString function as a
read-only property in my class, not as a function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top