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!
Mike, thanks for the quick response - overrides did the job just fine. One other question for the same tree. The datasource for the tree above is a dataset with 3 DataTables (one for each level) and 2 DataRelation linking the child nodes to corresponding parents (or vice versa). What I see is that when in VIewStyle.Grid mode - unlike when ViewStyle.Standard - the name for the Level 2 (2nd band) is not the name of the DataTable associated with the 2nd band and rather is the name of the DataRelation ("Level1_Level2" in this case). Therefore the tree shoes up like the following:
+ Level1_ Level 2
Curiously the name is correct for the Level1 and Level 3 and below. Is that a known behavior and what's the easiest way to get around it (just rename the DataRelation?). I need "Level 2" to be the name of the 2nd band. Thanks again!
The name of the band comes from the data source, and in the case of a DataSet, it's always the name of the Relationship. So I expect you are mistaken about the third level.
It also doesn't matter which ViewStyle you are using.
Where are you seeing the band names, anyway? Those will only show up if you have sibling bands and you don't have any in the example you describe here.