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?
 

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

Back
Top