title: How to show a display value for selected node in treeview in C#?
body: <p>I am trying to create a treeview which pulls info from a sql database. I want the text to be the name field but when you double click the name i want it to display the id field. I have look and looked but cant find any info on this?</p>
  
  <p>Code tried (Added from OP's comment):</p>
  
  <pre><code>   foreach (DataRow dr in Db.Table("Employee").Rows) 
     { 
        treeView1.Nodes.Add(
               new TreeNode(dr["Name"].ToString(),
               new TreeNode[] {new TreeNode(dr["EEID"].ToString())}));
     } 
        var node = treeView1.SelectedNode.Nodes[0].Text; 
        MessageBox.Show(string.Format("You selected: {0}", node));
  </code></pre>