title: Check for existing childnodes of treeview
body: <p>I know to this question is a lot of content in the internet and also on sof. But even by trying I cant find a working way to solve my problem.</p>
  
  <p>I have a TreeView that gets filled in runtime...</p>
  
  <pre><code>foreach( dynamic obj in data )
  {
      if (!rdpTreeView.Nodes.ContainsKey(obj.customername))
      {
          TreeNode customer = new TreeNode(obj.customername);
          customer.Name = obj.customername;
          rdpTreeView.Nodes.Add(customer);
      }
      //[some code]
  }
  </code></pre>
  
  <p>In <code>[some code]</code> I also want to fill some childnodes as well...</p>
  
  <pre><code>TreeNode server = rdpTreeView.Nodes[obj.customername] ;
  if (!server.Nodes.ContainsKey(obj.servername))
  {
      TreeNode myTn = new TreeNode(obj.servername);
      rdpTreeView.Nodes[obj.customername].Nodes.Add(myTn);
  }
  </code></pre>
  
  <p>But how ever I try, my <code>If</code>-clause won`t match in any way...</p>
  
  <p>My Treeview looks like</p>
  
  <pre><code>John
      Doe
  Max
      Molly
      Molly  //&lt;=== I want to deny this node
  Jack
      Jill
  </code></pre>
  
  <p>Since my data comes from a database, there could be a lot of same entry that i want to deny. Calling data distinct would filter to much results...</p>
  
  <p>So my question is:</p>
  
  <p><strong>How can I check for existing childnodes ?</strong></p>
  
  <p>Other sample use functions that dont even exists. At least my VS doesnt knows them.</p>