David Smith

David Smith

  • NA
  • 2k
  • 0

C# UltraTree Node or Tree Node

Sep 17 2011 11:37 PM
Can someone give me example of adding a record or to a tree node in code dynamically.

I know how to add a node, but how to add an entire row to treenode. Can some send me a small example.


 At the moment I have the logic to add all of the root nodes, Now I trying to go back and a record to the tree node


foreach (var gRow in Group)
  {
  if (!ultraTree1.Nodes.Exists(grow.PARENT.ToString()))
  {
  UltraTreeNode node = new UltraTreeNode(gRow.PARENT.ToString());
  this.ultraTree1.Nodes.Add(node);
  }
  }


Answers (3)