Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Displaymember by valuemember
 

Displaymember by valuemember

Hi all,

I there a way to get the displaymember value by a valuemember 
in a combobox

So for instance i know the valuemeber(id) of a combo is 10 , is there a way 2 get the displaymember(descrition) value

I know i can loop in the objectlist , but i don't think that is verry efficient

Remco
MigrationUser 1  Monday, February 14, 2005 8:17 AM
Try to use the SelectedValue and SelectedText property of the bound combobox.
MigrationUser 1  Monday, February 14, 2005 11:48 PM
HI

I think i was'nt clear!

A combobox got a function called SearchStringExact, this makes it possible to search for a record by>displaymember< 
What i want is to search a record by >valuemember< 

Remco

ps how can i make something bold


MigrationUser 1  Tuesday, February 15, 2005 4:49 AM

You can use google to search for other answers

Custom Search

More Threads

• Drag drop source file from Solution Explorer onto a form in designer
• Need a push in the right direction - Floating Box?
• PropertyGrid & TypeConverter
• SmartTags problem
• Wepos 1.1 Image and registry key
• rotating controls
• Strange behavior of CollectionEditor with my collection
• Set Mdiparent from child form in c#
• Lost Resource File Data
• Baseclass inherits from component