title: Expand all parent nodes of a specific node in C# treeview
body: <p>I'm creating a recursive find method in C# <code>Treeview</code>, and I want to expand all parent nodes of the fined node. This is my code:</p>
  
  <pre><code>private void RecursivFindNode(RadTreeNodeCollection nodes, string nodeName2Find)
  {
     foreach (RadTreeNode node in nodes)
     {
        if (node.Text.Contains(nodeName2Find))
         {
             node.BackColor = Color.Yellow;
             NodeExpand(node);
         }
         RecursivFindNode(node.Nodes);
      }
  
  }
  
  private void NodeExpand(RadTreeNode nodeExpand)
  {
     while (nodeExpand != null)
     {
         nodeExpand.Expand();
         nodeExpand = nodeExpand.Parent;
      }
  }
  </code></pre>
  
  <p>But I'm getting this error:</p>
  
  <pre><code>Collection was modified; enumeration operation may not execute.
  </code></pre>
  
  <p>I know I can't modify the item which is in a <code>foreach loop</code>. So how can I make it work?</p>