title: TreeView Root Node Selected
body: <p>I have this code to select first node of TreeView.  But when page loads the by default root node is other than first, I want to set the selected node as top most by default.  Here is my code in page load but it's not working:</p>
  
  <pre><code>Dim nodes As TreeNodeCollection = TreeView1.Nodes
  If nodes.Count &gt; 0 Then
    ' Select the root node
    TreeView1.SelectedNode = nodes(0)                        
  End If
  </code></pre>
  
  <p>This gives the blue underline error on this line:</p>
  
  <pre><code>TreeView1.SelectedNode = nodes(0)
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>"Selected Node Property is read Only"</p>
  </blockquote>
  
  <p>Please any one tell me how can I do this?</p>