I'm trying to implement windows form with data grid (or anything you say is better) which should represent a hierarchical data. This data are stored in a xml file which structure is as follows:
<elements> <element> <term>name of element</term> <subelements> <caption> <term>caption name</term> <subelements> <caption> <term>caption 2 name</term> </caption> <position> <term>position name</term> </position> </subelements> </caption> <position> <term>position name</term> </position> </subelements> </element> <element> ....... </element> </elements>
this means that element can consist of captions and positions, but captions can also have another captions and positions.
I would be very grateful if someone could tell me what is the best way to represent this data on windows form and how to do that.
The problem is that I can't use tree structure because I need to enter some data about this elements. Something like this:
Element | Start | End element 01.01.2010 10.01.2010 caption 01.01.2010 10.01.2010 position 01.01.2010 10.01.2010