Hello
I have grid something like in picture gridview.png (attach files) and I am loading data to it depending which action will be triggered by application user.
I know there are two cases:
- none of loading data have childrens
- all or some of loading data have childrens
For first case gridview.HierarchyChildTemplate
must be equal to null
and ChildTableDefinitions
should be empty (Count = 0).
For second case I load DataTemplate for gridView.HierarchyChildTemplate and I add adequate GridViewTableDefinition. But when I am dealing again with first case I do:
gridview.HierarchyChildTemplate =
null
<br>
ChildTableDefinitions.Clear()