ComboBox / DisplayMember & ValueMember

  • Thread starter Thread starter Brian Mitchell
  • Start date Start date
B

Brian Mitchell

Hello, I have a combo box that I am setting the DataSource property to an
ArrayList (that I have verified does contain data) and setting the
DisplayMember and ValueMember property to fields I have in the ArrayList.
However, when I run the program my combo box is empty; but, when I run the
same code using a list box instead of a combo box everything works
perfectly. Does the combo box support this kind of binding feature or am I
doing something wrong?

Thanks!!
 
I figure it out.

My Combox box was bound to an IList. When the SORTED property was set to
true, the datasource property was automatically reset to NOTHING when the
program ran.

Maybe a quirk in Visual Studio?
 
Back
Top