Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


VB. NET Data Binding: How to drill down with listboxes and comboboxes

Posted on 2009-02-23
Medium Priority
Last Modified: 2013-11-06

I have two tables as in the attached images and I've configured a dataset as in the query below. Form I'm trying to build is also in the attached image.

What I need to do is to drill down to [Descrizione Guasto] by making selection from two preceding listboxes. Let's say if user selects some value in Tipologia (which has to be DISTINCT... but now it's not) then the [Descrizione Categoria] is filtered out according to this. After selecting [Descrizione Categoria] user will be presented with the filtered out rows in the [Descrizione Guasto] combobox.

1) How do I make a databound listbox display only distinct values in this scenario?
2) How do I tie all these controls together?

Many thanks in advance!
SELECT  d.[Guasto ID], 
		d.[Descrizione Guasto], 
		d.[Categoria Guasto], 
		c.[Descrizione categoria], 
		c.[Codice categoria]
FROM	tblCategorieGuasto AS c INNER JOIN
        tblCodiciGuasto AS d ON c.[Codice categoria] = d.[Categoria Guasto]

Open in new window

Question by:Zaurb
LVL 70

Accepted Solution

Éric Moreau earned 2000 total points
ID: 23710065

Author Closing Comment

ID: 31550002
Thank you!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question