Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2004, 12:18 AM
Registered User
 
Join Date: May 2004
Location: melbourne, vic, Australia.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Bound ComboBox

I have bound my ComboBox to a DataSet. It always shows the first item from the drop down list. how can i make it look for a particular string in the list and show it in the text area. I tried the following code, but it doesn't work.

cboEmploymentStatus.SelectedIndex = cboEmploymentStatus.Items.IndexOf("N.A.")

PB




Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving a value from data bound to a repeater beeyule General .NET 0 September 8th, 2005 11:59 AM
Bound ComboBox Database Query dougontour VB.NET 2002/2003 Basics 5 April 20th, 2005 02:11 AM
Need help with bound data kcrompt2 Classic ASP Professional 0 February 9th, 2005 12:37 AM
Blank row in Data Bound ComboBox joblot VB How-To 1 May 5th, 2004 01:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.