Good afternoon!
There's the recursive data, and I need to fiil with it an UltraTree.
Each node can be one of the two types (accordingly, two column sets). There are 2 classes A and B.
class Base {public List<Base> Coll {get;set;}}
class A : Base {public string NameA{get;set;}}
class B : Base {public string NameB1{get;set;} NameB2{get;set;}}
I populate the tree in code recursively using ColumnSets.
When I set property ViewStyle = FreeForm, I see a header above each node. It's terrible.
I want header to be shown only above the first child node.
How to implement this?
Hi,
It's not clear to me what you want to display in the tree here. If you bind the tree to a List<Base> then the BindingManager will only return properties on the base class. You will bot see any properties of Class A or Class B, only properties on the Base. So in the case, why use FreeForm DisplayStyle?
If each node has a different ColumnSet, then they will each display a header. There's no way around that.
Perhaps you could post a screen shot of what it looks like or what you want to achieve.
This is what's needed.
The only distinction is the structure is hierarchical and on each level we can have either A or B.
Hello,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Can you edit your screenshots and mark with some line the elements you want to change so we can get a clearer view of your requirements?
Sorry, but I am not following you.I see that you have WinTree on top and a grid on the bottom, but I don't understand what you want.
What, exactly, is wrong with what's shown in the screen shot here? What are you trying to change? Are you talking about the band nodes that say "Contribution" and "Personal Information?" Those are called Band Nodes, and there is no way to remove them from the tree when you have sibling bands. The bands have to separated.
Remark:
Structure is recursive, not hierarchical.
Example:
NameA
John
- John2
- John3
- Shon
- Shon2
NameB1 NameB2
- Z1 Z2
- John4
- B01 B02
- B03 B04