We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can TreeNodeAdv and its sub nodes be copied from one TreeViewAdv to another TreeViewAdv?

The TreeNodeAdv and its sub nodes can be copied from one TreeViewAdv to another. By using the Clone function, the TreeNodes can be copied. The copied nodes can be added to another TreeViewAdv by using the Add function in the TreeNodeAdvCollection.

 

To copy the selected TreeNodeAdv:

You can copy the selected TreeNodeAdv to another TreeViewAdv, by using the following code example.

C#

 

VB

 

To copy the TreeNodeAdv based on the index:

You can copy the TreeNodeAdv based on the index, and the copied tree node can be added to another TreeViewAdv by using the following code example.

C#

VB

 

Figure 1: Before adding TreeNodeAdv to another TreeViewAdv

Figure 2: After adding TreeNodeAdv to another TreeViewAdv

 

Sample Links:

C#: CopyTreeNode_C#

VB: CopyTreeNode_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5387 08/25/2015 08/25/2015 WinForms TreeViewAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon