-
Select combobox item by valuemember value
I am using a combobox to store values contained in a collection class, like so:
lstKeywords.ValueMember = "KeywordID"
lstKeywords.DisplayMember = "KeywordString"
lstKeywords.DataSource = colKeywords
I would like to programmatically select a certain combobox member at runtime via the "KeywordID" value. What's the simplest approach to do this?
Thanks...
Bob Rouse
Dimension Data
-
Bob,
You can set the combo box's SelectedValue property to some value and the item with that value will be selected.
Or am I not understanding what you are trying to do?
Kerry Moorman
Similar Threads
-
By srinivasc_it in forum .NET
Replies: 5
Last Post: 08-18-2006, 01:15 PM
-
Replies: 4
Last Post: 04-14-2006, 09:09 AM
-
Replies: 1
Last Post: 11-27-2001, 06:53 AM
-
By Nirit Touboul in forum Database
Replies: 7
Last Post: 02-25-2001, 11:34 AM
-
By malikmehmood in forum Database
Replies: 0
Last Post: 11-20-2000, 05:12 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks