sparkle999 Posted January 31, 2004 Posted January 31, 2004 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 Quote
Administrators PlausiblyDamp Posted January 31, 2004 Administrators Posted January 31, 2004 ListBox1.SelectedValue = Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.