treeView1.Nodes.Clear(); TreeNode parentNode, node; parentNode = treeView1.Nodes.Add( "Parent item" ); node = parentNode.Nodes.Add( "Child item 1" ); node = parentNode.Nodes.Add( "Child item 2" ); node = parentNode.Nodes.Add( "Child item 3" ); treeView1.ExpandAll();Output:
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Wednesday, September 12, 2018
C# - How to add items to TreeView
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment