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.

Set TreeNodeAdv Backgroundcolor?

Thread ID:

Created:

Updated:

Platform:

Replies:

105164 Sep 13,2012 05:28 AM Sep 14,2012 08:02 AM Windows Forms 1
loading
Tags: Tools
Fabian
Asked On September 13, 2012 05:28 AM

Hello,

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.

Thanks

Berkunath A [Syncfusion]
Replied On September 14, 2012 08:02 AM

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.

[c#]

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

[sample link]

http://www.syncfusion.com/downloads/Support/DirectTrac/97809/ChangeNodeColor-511908967.zip

Please let us know if you need any other details.

Regards,

Berkunath A


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.

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.

;