Hello!
I searched the forum but didnt really find an answer, hope u can help me:
I have a DataSet like this:
Region Name
North Smith
North Bond
North Simpson
South Willis
Now i want this displayed in a UltraTree like this:
-North
-Smith
-Bond
- Simpson
-South
- Willis
I do
ultraTree1.DataSource = myDataTable;
but then i get a tree like
I tried other things too, but didnt get the tree like i want it.
You have to create a DataRelation and add it to the DataSet's Relations collection. Once the DataSet is properly structured, you can use the control's SetDataBinding method to assign that DataSet to the DataSource property, and the name of the table that contains the regions to the DataMember property.
NavigationNode ParentID
A NULL
B NULL
C A
D B
E D
-A
-C
-B
- D
- E
Thank you, now it works.
I definately tried that DataSet-Relation-thing before, but it seems I made some mistake somewhere.