How to add dynamic node in treeview control?

Asked By Anil Desai
04-May-07 12:15 AM
Earn up to 0 extra points for answering this tough question.
here i want to create treeview control dynamically.

  TreeNode node = new TreeNode()

Robbe Morris replied to Anil Desai
04-May-07 08:37 AM

TreeNode node = new TreeNode();

TreeNode childNode = new TreeNode();

node.Nodes.Add(childNode);

myTreeControl.Nodes.Add(node);

  thanks robbe. need more help pls.

Anil Desai replied to Robbe Morris
07-May-07 12:53 AM
here i want fetch childnode text from database and also showing if childnode is file then displaying icone for that file and if childnode is folder then display folder icone. pls help me.
Create New Account