Newbie Question.

  • Thread starter Thread starter Dmension
  • Start date Start date
Hi!

did you read the help file ? there is a sample that shows how to use it and
what it does. (but if recall correctly you must set DisplayMember and
ValueMember **before** the DataSource or it won't work as expected (at least
here))
http://msdn.microsoft.com/library/e...dowsformslistcontrolclassvaluemembertopic.asp


basically if you've set a DataSource or added any kind of object item in the
list,
the DisplayMember represents the property of the object that will be use
by the list as the text for the item
the ValueMember represents the property of the object that will be use
by the list as the value for the item. It may be another string, a integer,
a date... whatever type you need.
 

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