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.

TreeViewAdv - how to preselect multiple nodes

Thread ID:





5233 Jun 25,2003 10:23 AM Jul 11,2003 06:40 AM Windows Forms 1
Tags: Tools
Neal Granroth
Asked On June 25, 2003 10:23 AM

The control supports multiple selection but there does not appear to be a programatic way to set the selected state on more than a single node. Setting the SelectedNodes property with an array of nodes "to be selected" causes very odd behavior. Ther must be some other, correct, way to do this. Any hints anyone?

Ramesh Praveen [Syncfusion]
Replied On July 11, 2003 06:40 AM

To select nodes from code you should do this: TreeVireAdv.SelectedNodes.AddRange(some nodes); In order for this to work the TreeViewAdv.MultipleNodeSelection must be set to true. The results might not be visible if the Tree hasn`t got focus. To fix this you should set the HideSelection property to false. Regards, Praveen


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.

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.