Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Can anyone advise, is there a straightforward way of selecting an item in the listbox that matches a value member, rather than the display member?

 

e.g. I have a listbox with a list of customer names. The display member is linked to the customer name (this is what shows in the listbox), but the value member (not displayed) is linked to the primary key. I want to select the item in the listbox that matches the primary key. For info the listbox is bound to a data view, which links to a dataset.

 

The only method I can find is called FindString, but this uses the display member? Any advice?

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...