Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
How to hide root elements when dataset contains more than one DataTable?
posted

I am binding a data set with 3 tables to a grid style UltraWinTree (v9.2). The structure is organized so that I have two top level 'bands' (data tables with various number of columns) and one child 'band' (another data table) underneath each top band (see picture). Both top level tables have a relationship with the same bottom level data table. Two questions:

1. How do I get rid of the root level elements in red - Table1 and Table 2?

2. How do I make sure ChildTable (child band table) does not show as a separate table on the tree? It should only show as a 'second band'

What I am trying to have here is a 'grid' where I can have various number of columns on the top band. The picture of the tree is below but I have no idea how to attach the source here. Thanks!!

 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    Those extra nodes are called Band Nodes and they will show up any time you have sibling bands. There is no way to prevent this or remove the band nodes. They must be there to separate the nodes collections of the two different bands.

    If you want to show data from two different bands with no band node, then you would have to create a data source that contains a single collection of items to bind to the tree.

    Or, you could, of course, populate the tree manually using the Add method on the nodes collection instead of binding. You could use the FreeForm ViewStyle and assign a different ColumnSet to each node in the tree.

Children