954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using a ComboBox to Refresh another Combo Box

Hi there,

Sorry to ask a silly/stupid question...

I'm new to all this and i'm in the process of learning VB .NET using Visual Studio 2010...

I just had a question because I cannot seem to find the answers anywhere on the internet... also we are not upto this part in class yet..

Say I have 2 combo boxs... cmb1 and cmb2.. both are datasets from an access table..

how do I make it so cmb2 refreshes based on the value of cmb1?

eg; if cmb1 is say, period 1, then i want cmb2 to only show results bases on items I have in period 1?

Any help would be greatly appreciated

Ross the newb

forge199
Newbie Poster
1 post since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This is called cascaded combobox. In cmb1 Selected index changed event you need to filter the records of dataset which urusing to bind the cmb2 using dataview and then bind the filtered resultset to cmb2.

Pgmer
Master Poster
714 posts since Apr 2008
Reputation Points: 54
Solved Threads: 121
 

Hi! I had the same question.. The answer is at thread named "Cascading Combobox vb".

skran
Light Poster
43 posts since Nov 2011
Reputation Points: 19
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: