ComboBox and ValueMember

P

Phill. W

Am I missing something here?

I have a simple class that exposes String properties called "Key"
and "Description".

I have a Control inherited from a ComboBox, into whose Items
collection I've added instances of the above class. The [inherited]
ComboBox's ValueMember is set to "Key" and its DisplayMember
to "Description".

Should the "text" part of the ComboBox display only the value
retrieved through the ValueMember "mechanism" and, if not, how
can(?) I persuade it to?

TIA,
Phill W.
 

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

Top