title: Programmatically fill a Treeview at runtime with given structure
body: <p>I'm working on a little program, which grabs some data and should display them on a 
  Treeview or <a href="http://devcomponents.com/dotnetbar/treeviewcontrol.aspx" rel="nofollow">DotnetBars advTree</a> control.</p>
  
  <p>On a button click event there will be collected some data and the (string)output looks like this. (structure of treeviews)</p>
  
  <pre><code>myTree.add(1,-1,'','');
  myTree.add(260, 1, 'All Releases', '');
  myTree.add(6,260, 'Cat1', ''
  myTree.add(7,6, '20.0.2'', ''
  myTree.add(8,7, '20.0.21', '&amp;some stuff'
  myTree.add(9,7, '20.0.20a', '&amp;some stuff'
  myTree.add(10,7, '20.0.5', '&amp;some stuff'
  myTree.add(11,260, 'Cat2', ''
  myTree.add(12,11, '12.2', ''
  myTree.add(13,12, '12.2.77', '&amp;some stuff'
  myTree.add(14,12, '12.2.26', '&amp;some stuff'
  </code></pre>
  
  <p>First Column contains the Node-ID and the second column contains the ID, which it is a child-node from. The third contains the Node Text, which should be shown in the treeview, the last is for later purpose (value output).</p>
  
  <p>Result: (Treeview example)</p>
  
  <ul>
  <li>All Releases
  <ul>
  <li>Cat1
  <ul>
  <li>20.0.2
  <ul>
  <li>20.0.21</li>
  <li>20.0.20a</li>
  <li>20.0.5</li>
  </ul></li>
  </ul></li>
  <li>Cat2
  <ul>
  <li>12.2
  <ul>
  <li>12.2.77</li>
  <li>12.2.26</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>How can I get the Treeview items added programmatically with all its child-items?</p>