Extending ComboBox
Hi all,
I have inherited the task of maintaining C# code that was developed on NT. I am currently trying to build and run it on XP. It is building fine but isn't running.
The problem is down to a combobox. The developer has extended the standard ComboBox to add some functionality but it appears that this extension has broken the ability to assign a datasource to it.
When I try to assign an ArrayList to it the value of DataSource is = null just after the assignment, however, if I assign the same ArrayList to a standard ComboBox's DataSource property the value = the ArrayList.
Any tips would be brill.
Thanks
[627 byte] By [
A_S_G] at [2008-2-17]
There is no known issues that I know of.
However, without seeing the code there is no way I can tell whether the combo box's functionately is changed by the extension.
Thanks, it seems the problem isn't with the extended combobox it is with what is being assigned to its DataSource!
If I create a simple ArrayList and add 10 integers to the combobox's DataSource property they display ok.
However when I add objects of one of my classes to an ArrayList and assign that to the DataSource property nothing is displayed. I have a ToString in my class and a Name property in my class that is added to the ArrayList. The combobox's DisplayMember property is also being set correctly.
Do you have any advice on what could be going wrong here?
Thanks for any help.