I need to mix different types of ViewStypes (Infragistics.Win.UltraWinTree.ViewStyle) on the different levels of a data source bound tree. I would like the top two levels within the tree (each level is a DataTable) to appear as a Standard tree node whist the bottom level to appear as a Grid (multiple Cells). This is the structure that I would like to get:
+ Level 1
+ Level 2
+ Level 3 Column1 | Level3 Column2 | Level 3 Column 3| ...
What is the easiest way to achieve something like that? If I start with tree ViewStyle Grid all levels within the tree appear as single or multi-cell grid levels. Thanks!
Its quite clear now...Thanks for your help
Hi,
I'm not sure where the point of confusion is here, but I will reiterate:
If you have sibling bands in the tree, the tree must show band nodes. There is no way around that. You cannot display sibling bands in the tree without band nodes.
I suppose you could manually populate the tree instead of using DataBinding and then assign a ColumnSet to each node. You would have to set the tree's ViewStyle to FreeStyle and this would mean that the column headers would show up on every node.
I understand the default behavior of the Tree control. My question is - is there a way to override it while preserving this structure? I know the sibling nodes can be hidden (so as the dotted lines) but this tends to screw up the way the tree looks, is there a cleaner way to remove these extra nodes? Thanks again.
Okay, so that's what I was saying. You have sibling bands. In a case like this, the tree has to separate the nodes collecttions in two groups - one for each child band. You cannot remove the Band Nodes in this case.
Mike, I do have 2 relationships under Level 1. Since Level 1 has 2 child DataTables I have one relationship to parent table for each child table. Below is the complete structure of this tree. For each table in this structure I create a child-parent relationship.
+ Level 2a
+ Level 2b
I've included a sample project that demonstrates a similar behavior, one parent Datatable with two child DataTables and two relationships result in an extra set of sibling nodes. If I remove one of the relations (right now there a two, one for each child) only one of the child tables is shown. I cannot just create one child table and add two data rows into it. Although this would resolve this problem, in my case, each child table can has its own set of table specific columns. Therefore I need two child tables. Project code is included. This is the screenshot of the tree in the sample project.