The C1TreeNodeCollection class provides the Add method and the Insert method for adding nodes in TreeView. To add a parent node, you can use either of the two methods with the Nodes collection of the C1TreeView class. Next, to add a child node in the parent node, or children nodes in a child node, you can either use the Add method or the Insert method with the Nodes collection of the C1TreeNode class.
The following code snippet demonstrates how to add nodes in the TreeView control using the Add method.
The following image shows the treeview after adding nodes.
The following code snippet demonstrates how to add nodes in the TreeView control using the Insert method.
The final treeview appears, as shown below.