I have the following datas :
public class Category {
string title {get;set;}
List<Category> Childs {get;set;}
List<Element> Elements {get;set;}
}
public class Element{
string Title {get;set;}
string Description {get;set;}
}
I would like to display it in a TreeView and a DataGrid, on x levels deep, like the following example :
CategoryA
CategoryB
Element1-Title Element1-Description (in a gridView)
Element2-Title Element2-Description (in a gridView)
CategoryC
Element3-Title Element3-Description (in a gridView)
CategoryD
CategoryE
CategoryF
Element4-Title Element4-Description (in a gridView)
Element5-Title Element5-Description (in a gridView)
How can I achieve this ?
Thanks for any advices
Mikke