Hi,
Long winded title I know but hey!
OK, i've got a custom collection of objects inherited from System.Collection.CollectionBase that is populated as an app opens and placed in a global variable.
As my form is opened, a property on the UserControl is passed the collection. As the property is set, the DataSource, DisplayMember and ValueMember on a combobox are set.
Now for the BUT.....
I'm using this technique on one control great but on another, it is displaying the name of the class stored in the collection, not the Name property on the object.
IDENTICAL CODE! And it works when I bind to a combobox on the form! What are I doing wrong before I go insane!!!!
Craig
PS All help appreciated!
Long winded title I know but hey!
OK, i've got a custom collection of objects inherited from System.Collection.CollectionBase that is populated as an app opens and placed in a global variable.
As my form is opened, a property on the UserControl is passed the collection. As the property is set, the DataSource, DisplayMember and ValueMember on a combobox are set.
Now for the BUT.....
I'm using this technique on one control great but on another, it is displaying the name of the class stored in the collection, not the Name property on the object.
IDENTICAL CODE! And it works when I bind to a combobox on the form! What are I doing wrong before I go insane!!!!
Craig
PS All help appreciated!