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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeNodeAdv and highlighting the SelectedNode

Thread ID:

Created:

Updated:

Platform:

Replies:

62790 Jun 21,2007 11:07 PM UTC Jun 22,2007 12:47 PM UTC WinForms 1
loading
Tags: Tools
Mark Atkinson
Asked On June 21, 2007 11:07 PM UTC

I understand the concept of the SelectedNode property of the TreeViewAdv control but is there a way to programmaticly set the UI state of the SelectedNode?
In particular, I'd like to set the Selected Node as being highlighted in blue as if a user had selected it. Ideally, it would be cool to raise the Click event on that node as well.

JayaLakshmi [Syncfusion]
Replied On June 22, 2007 12:47 PM UTC

Hi Mark,

Thank you for using Syncfusion products.

To programmatically select a node, use the code snippet below.

this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes[1];

To highlight the selected node, you can go with the properties SelectedNodeForeColor and SelectedNodeBackground.

Please refer the sample below and let me know if you have anyother queries.

http://websamples.syncfusion.com/samples/Tools.Windows/F62790/main.htm

Regards,
Jaya

CONFIRMATION

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.

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

;