C
Chris
Hi,
anyone experience with the TreeView control that is available in the
Microsoft.Web.UI.WebControls component ?
I want to add a few nodes to the TreeView-control but don't know quite how :
// Creating a few nodes
TreeNode node1 = new TreeNode();
node1.Text = "Canada";
TreeNode node2 = new TreeNode();
node2.Text = "Spain";
// Adding to the collection
TreeNodeCollection coll = new TreeNodeCollection();
coll.Add(node1);
coll.Add(node2);
// View nodes in the TreeView-control
TreeView vw = new TreeView();
vw.<WHAT METHOD DO I USE NOW IN ORDER TO ADD THE NODES TO
THE VIEW ?? >
Note : I don't want to use the TreeNodeSrc-property which takes data out of
an
XML-file, no I need to add the data programatically
Thanks
Chris
anyone experience with the TreeView control that is available in the
Microsoft.Web.UI.WebControls component ?
I want to add a few nodes to the TreeView-control but don't know quite how :
// Creating a few nodes
TreeNode node1 = new TreeNode();
node1.Text = "Canada";
TreeNode node2 = new TreeNode();
node2.Text = "Spain";
// Adding to the collection
TreeNodeCollection coll = new TreeNodeCollection();
coll.Add(node1);
coll.Add(node2);
// View nodes in the TreeView-control
TreeView vw = new TreeView();
vw.<WHAT METHOD DO I USE NOW IN ORDER TO ADD THE NODES TO
THE VIEW ?? >
Note : I don't want to use the TreeNodeSrc-property which takes data out of
an
XML-file, no I need to add the data programatically
Thanks
Chris