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 background

Thread ID:





81001 May 6,2009 11:28 PM UTC May 7,2009 07:13 AM UTC WinForms 1
Tags: Tools
Administrator [Syncfusion]
Asked On May 6, 2009 11:28 PM UTC


How to change the highlighted node background to white which should look like unselected node.
I am using treecontrolAdv "BeforeSelect" event to validate the previous selected node before going to make the new node selected. After canceling the event(in case validation fails), it is behaving as expected except hightlighting the node. It is not reverting the hightlighted background of the new node which is actually not selected as I am caneling the event to switch back to the previous node.

Please find the attached image file for the reference.

I am using syncfusion version.

Rajendra prasad Racharla.

BeforeSelect event_fa5e45e0.jpg

Administrator [Syncfusion]
Replied On May 7, 2009 07:13 AM UTC

Hi Rajendra prasad ,

Thank you for using Syncfusion products.

Changing highlighted node background to white

This can be done by setting SelectedNodeBackground property to white in BeforeSelect event as follows.


void treeViewAdv1_BeforeSelect(object sender, TreeViewAdvCancelableSelectionEventArgs args)
this.treeViewAdv1.SelectedNodeBackground = new Syncfusion.Drawing.BrushInfo(Color.White);

Please let me know if this helps you.



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