Newbie Question.

Newbie Question.

Post by Dmensio » Sat, 08 Jan 2005 06:17:49


What is a valuemember and the purpose of this property.
 
 
 

Newbie Question.

Post by Zour » Sat, 08 Jan 2005 06:39:01

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://www.yqcomputer.com/


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.

--
Best Regards
Yanick

"Dmension" < XXXX@XXXXX.COM > a rit dans le message de