I'm trying to find the best way to approach a datagrid display issue. What's the best way to show and hide different portions of a datagrid that displays hierarchical arrangements?

The effect of the display is to show and hide different parts of a hierarchy - a tree with rows attached, for lack of a better way of saying it.

Let's say the display is something like this:

Category 1
Item 1
Item 2
------
Item n
Category 2
Subcategory 1
Item 1
Item 2
......
Item n
Subcategory 2
Item 1
Item 2
......
Item n
Category 3
Item 1
Item 2
......
Item n
......
Category n

What's the best way to approach showing and hiding the category and subcategory names and the items within them? Should I tie a datagrid to a tree - or can all this be accomplished within a datagrid? Or is there another approach?

- Tom








Reply via email to