NTreeViewEx Background color not applied


https://www.nevron.com/Forum/Topic8912.aspx
Print Topic | Close Window

By nicolas edibe - 9 Years Ago

I would like to have a white background color for NTreeviewEx instead of the default grey.

I set:
nTreeViewEx1.BackColor = System.Drawing.Color.White;

But it does not get applied and the component stays grey.

How to fix this ?

By Nevron Support - 9 Years Ago
Hello Nicolass,

To change the background color of NTreeViewEx control you need to set its FillInfo property as follows:


NFillInfo fillInfo = nTreeViewEx1.FillInfo;
fillInfo.FillStyle = FillStyle.Solid;
fillInfo.Color = Color.Black;


I hope this helps.