Hierarchical data in datagrid

N

Nicolas Martinez

this topic was discussed a few days ago and this link came up
http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/

but im trying to go further:

i'm designing a sort of database explorer where you can choose from a set of
parameters
what info you see, and the levels in the hierarchy i want to display could
vary dinamically.
This is a problem since i don't know how to nest a dynamic number of grids.
Then again, i can´t tell if i should use datagrids or datalists.
To round up: i want to display a variable number of hierarchy levels in a
grid-like fashion,
with expand and collapse buttons to show disagreggated data, like this:

-------------------------------------------------
name orders sales
-------------------------------------------------
(-) clientA 2 100
-------------------------------------------------
ordNo. sales
1 75 (expanded)
2 25
-------------------------------------------------
(+) client B 3 125
-------------------------------------------------
(+) client C 1 105
-------------------------------------------------

Can anyone help me out with this? What objects shoud i use?
Can i nest them? Can i vary the number of nested objects?

Nicolas
 
O

Oliver

Hi Nicolas,

You might want to look at the free Hiergrid control that does the
expand/collapse thing:

http://www.denisbauer.com/ASPNETControls/HierarGrid.aspx


this topic was discussed a few days ago and this link came up
http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/

but im trying to go further:

i'm designing a sort of database explorer where you can choose from a set of
parameters
what info you see, and the levels in the hierarchy i want to display could
vary dinamically.
This is a problem since i don't know how to nest a dynamic number of grids.
Then again, i can´t tell if i should use datagrids or datalists.
To round up: i want to display a variable number of hierarchy levels in a
grid-like fashion,
with expand and collapse buttons to show disagreggated data, like this:

-------------------------------------------------
name orders sales
-------------------------------------------------
(-) clientA 2 100
-------------------------------------------------
ordNo. sales
1 75 (expanded)
2 25
-------------------------------------------------
(+) client B 3 125
-------------------------------------------------
(+) client C 1 105
-------------------------------------------------

Can anyone help me out with this? What objects shoud i use?
Can i nest them? Can i vary the number of nested objects?

Nicolas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top