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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeNodeAdv, selecting miltiple nodes programatically

Thread ID:





18939 Sep 14,2004 11:24 AM UTC Sep 15,2004 01:54 PM UTC WinForms 2
Tags: Tools
Peter Erikson
Asked On September 14, 2004 11:24 AM UTC

Hi, Does anyone know if it is possible to select multible nodes in a TreeViewAdv contoll programatically? /Peter

Sean Greer
Replied On September 14, 2004 06:19 PM UTC

See this forum thread: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=18522

Administrator [Syncfusion]
Replied On September 15, 2004 01:54 PM UTC

Hi, Sean, Thanks for the update. We appreciate your continued support for Syncfusion. Peter, You would have to derive from the TreeViewAdv and use the protected SetSelectedNode method for this purpose as shown in the code below : public class CustomTreeViewAdv : TreeViewAdv { public CustomTreeViewAdv () : base() {} public void AddSelectedNode(TreeNodeAdv node) { ArrayList arr = new ArrayList(); arr.Add(node); this.SetSelectedNode (arr, null, TreeViewAdvAction.Unknown, false, true); } } // Invoke the AddSelectedNode method to add nodes to the SelectedNodes collection this.treeViewAdv1.AddSelectedNode(node); Please refer to the sample attached that illustrates this. Let me know if this helps. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon