title: How to set Child Nodes to Parent Nodes in TreeView?
body: <pre><code>protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
  {
      string input = TreeView1.SelectedValue.ToString();
      DataSet ds = new DataSet();
      TreeLogic bl = new TreeLogic();
      TreeNode root= new TreeNode(input);
      ds = bl.getChild(input);
      for (int i = 0; i &lt; ds.Tables[0].Rows.Count; i++)
      {
          TreeNode tnode = new TreeNode(ds.Tables[0].Rows[i][1].ToString());
          tnode.SelectAction = TreeNodeSelectAction.Expand;
          root.ChildNodes.Add(tnode);
      }
  }
  </code></pre>
  
  <p>Child nodes not displays when i select parent node. Can any one tell why?</p>