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

Set TreeNodeAdv Backgroundcolor?

Thread ID:





105164 Sep 13,2012 09:28 AM UTC Sep 14,2012 12:02 PM UTC WinForms 1
Tags: Tools
Asked On September 13, 2012 09:28 AM UTC


is there a way to set the backgroundcolor of a treenodeadv at runtime?
I'd like to set different backgroundcolors to the nodes in my treeview.


Berkunath A [Syncfusion]
Replied On September 14, 2012 12:02 PM UTC

Hi Fabian ,

Thanks for your interest in Syncfusion products.

You can achieve your requirement by using the following code snippet and  also I have attached a simple sample that demonstrates the same.


treeViewAdv1.SelectedNode.Background = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.Pink);

[sample link]


Please let us know if you need any other details.


Berkunath A


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