troubleshooting Question

Removing the First Inserted TreeNode in the Tree Without removing the Child

Avatar of Nalin Kumar Balaji Shanmugam
Nalin Kumar Balaji ShanmugamFlag for India asked on
Visual Basic.NET
3 Comments1 Solution286 ViewsLast Modified:
In the Below For loop i am Inserting a Treenode First ( at the Time of adding Node "TreeviewParent.Nodes.Add(Node)" the value of Node.Nodes.Count=0. After that when i insert a childnode below the Treenode I defined. Then i want to remove the Node. How can i remove the Parent

For Each dr In drs
       Node = New TreeNode
       Node.Text = dr(FieldName)
       cnode = New TreeNode
       cnode.Text = dr(FieldName)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros