I am using a TreeView in WinForm, TreeView is binded to XML. When a User select a node I need to display the number of attributes for that node.
Any idea how to show this value?
private void tr1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
// Get node relative level
txtBoxRelativeLevel.Text = e.Node.Level.ToString();
// Get total child nodes
txtBoxDirectDescends.Text = e.Node.Nodes.Count.ToString();
}
xml
<element atribut1="a" atribut2="b">text</element>
No comments:
Post a Comment