Displaying hierarchical data in a table
I have a hierarchical data structure that I need to display in WPF. I am very new to WPF and am trying to find a way to do this. But alas, I drew a space and asked you guys for help. My data structure looks like this:
- Ford
- F-150,
- 2009
- P4445
- 2008
- N998
- 2007
- M775
- 2009
- F-350
- 2008
- N999
- 2007
- M777
- 2008
- F-150,
I want the data to appear in a table for easy searching:
Ford
Model | 2009 | 2008 | 2007
---------------------------------------------
F-150 | P4445 | N998 | M775
F-350 | | N999 | M777
I am completely lost on how to do this, or if possible. It would be easier if it were in tabular format, but unfortunately I cannot change the data structure. What would be the best and most efficient way (I probably have 70 models that I need to render at once) to do this in WPF?
0
source to share