I need to bind the ultratree with a list of datasets containing parent and child tables related with a DataRelation in the dataset. But in doing so, only the last dataset is drawn as a tree and the rests are just gone.
Secondly, I tried iterating on datasets in the list and binding them to individual nodes in the tree, which is working fine, but the problem with this approach is that the node requires a string to display as header necessarilly, which is not needed in my case. I want my ultratree to have rootnodes as the parent tables themselves with one expand indicator, expanding into the child node. But instead, I am getting three levels:-
- child table1
- child table2
whereas I wani it in the structure:-
- child table1
My team and I have done an initial review of the requirement you are looking to achieve, and I believe we will need a little more information on exactly what you are trying to do in this case. It sounds like you have a List<DataSet> that you are trying to bind the UltraTree to, but the “diagram” that you have provided is confusing me a little bit.
In the case of the diagram(s) that you have provided, what does “parent table 1” and “parent table 2” represent in this case? Is this the first and second row of a single parent table, or are these two separate tables? If you are looking to have rows from two separate tables be concurrent siblings, I do not believe this requirement is achievable, but it will be helpful if you can please clarify this.
Additionally, if you have an isolated sample project that you can attach that shows what you are trying to do in this case, that may be very helpful as well.
Please let me know if you have any other questions or concerns on this matter.
Thanks a lot for your reply Andrew. I think I have been interpreting the problem wrongly. Where I could have used two tables with a datarelation in a single dataset, I was using multiple tables and multiple dataset. Therefore, I wasn't getting the right results. Now my insight is clear about the problem - I need to have two tables with differnet rows as the different nodes of the ultra tree. The problem is resolved.
Thanks a lot.