How to implement a hierarchical listbox?

  • Thread starter Thread starter David
  • Start date Start date
D

David

I'd like to implement something like a listbox with 2
types of rows. What I have are projects and assignments. I
want to initially show just projects, with a '+' if there
are any assignments. When a user clicks on a listbox row
with a '+', I want to show the assignments under the
project, the '+' will change to a '-'. When the project
row is clicked on again the assignment rows will disappear
and the '-' will change back to a '+"

I also need to enable command buttons to do different
things depending on whether a project row or an assignment
row is selected.
Has anyone done anything like this? Is there a better way
than a listbox?
 
Sometimes, just re-thinking how you want the user interface to work will
eliminate the need for a treeview.

Take a look at the first screen in the FOLLOWING set of screen shots. The
"drill" down is based on a standard ms-access controls, and I a have found
the approach to be VERY user friendly.

Check out:

http://www.attcanada.net/~kallal.msn/Articles/Grid.htm
 
Back
Top