D
Don
I've been trying to create a custom collection that can be bound to a
combobox via the DataSource property, but I can't seem to get it to work.
I've created a class that implements IList, and it seems to work okay on its
own, but when I try to bind it to a combobox, the combobox doesn't show
anything (and it starts having problems repainting itself). The Datasource
appears to contain my custom collection object, but when I ask for its item
count I receive zero when I should be receiving a higher number.
Has anyone tried to do something like this before and succeeded? Maybe
there's just a problem with my implementation of IList? I can post my code
(it's long) or email it if anyone wants to see it.
- Don
combobox via the DataSource property, but I can't seem to get it to work.
I've created a class that implements IList, and it seems to work okay on its
own, but when I try to bind it to a combobox, the combobox doesn't show
anything (and it starts having problems repainting itself). The Datasource
appears to contain my custom collection object, but when I ask for its item
count I receive zero when I should be receiving a higher number.
Has anyone tried to do something like this before and succeeded? Maybe
there's just a problem with my implementation of IList? I can post my code
(it's long) or email it if anyone wants to see it.
- Don