VB
Vipul Bhatt
October 21, 2002 07:59 AM UTC
> I have a ValueMember of a comboBox .
> Now with this ValueMember I want to search and display the corresponding DisplayMember in the combobox.
> The combobox is bound to a column 'Country' of a table.
> 'United States','Canada','Australia',etc are the DisplayMember with the ValueMember being 'US','CA','AU' resp.
> If I get the value 'CA' on my form how do I display 'Canada' in the combobox.
> Thanks a lot.
> Bye
Just use the following code:
combobox.selectedvalue = 'CA'
JA
Jackfan
October 21, 2002 12:26 PM UTC
But if I just want to get the value and not to call the combox's select event?