The best practice to setup hierarchy data

Posted by eski on Stack Overflow See other posts from Stack Overflow or by eski
Published on 2010-06-09T10:40:43Z Indexed on 2010/06/09 10:42 UTC
Read the original article Hit count: 160

Filed under:
|
|

I'm trying to figure out the best practice to setup hierarchy data that i take from a database into some contoller that would show the hierachy. Basicly this would look like a normal tree but when you press the items that are under "chapters" you get a link to another page.

I have these tables and this is the way they are connected

Period
Courses
Subjects
Chapters

I select Period from a DropDownBox and then i want all the courses in that period to line up. Under each course would be the subject and under them are the chapers, typical hierarchy.

The tables are linked together with refrences to each other in linear way.

I have tried to use treeview to show this, but dont understand how to do it. I though i could use <ul><il> tags and do it at runtime. Reapeter or datalist, possible ?

Is it better to do this with databinding in XAML or in code ?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about sql