Wrox Programmer Forums
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 June 10th, 2006, 01:32 AM
Registered User
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB .net combo box problem

Um kind of newbie and need a lil help working with combobox
firstly there are two tables in the database "Batch" & "Products"
which are linked by ProductID in Batch Table

The design time binding are done as follows:

FOR COMBO BOX1 - Product Name

DataSource: DataSet.Product
DisplayMember: ProductName
ValueMember: ProductID
SelectedValue: DataSet - Batch.ProductID

FOR COMBO BOX2 - Product Type
DataSource: DataSet.Product
DisplayMember: ProductType
ValueMember: ProductID
SelectedValue: DataSet - Batch.ProductID

Everything goes fine as long as i'm displaying the data in combo box while traversing through batches but when Add button is clicked to add new batch and time comes to select the product name the product type automatically gets change with product name - Thats good enuff! but on some index at random it shows the product type combo box blank.
When i tried to display the data of product type in a msgbox on SelectedIndex_change of ProductName (just to check) it perfectly gives wat shud've been written in ProductType Combobox . ..

HELP ME cuz it has already costed me 2 days!!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box to display items from parent combo box Gini Visual Studio 2008 0 June 18th, 2008 12:30 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
Combo Box Problem munrrob Access 1 September 21st, 2006 10:35 AM
Advanced Combo Box in .NET mcinar General .NET 2 February 12th, 2005 08:58 AM

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