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. Image for the cookie policy date


Hi, i don;t know if i'm missing the point here but i am having problems programatically creating TreeNodeAdvStyleInfo objects, setting the font / colour diferent on each one, and the assigning them to a programatically created Node. Can some one post a quick sample. thanks Trev

1 Reply

AS Arun Srinivasan Syncfusion Team October 6, 2003 06:01 PM UTC

Hi Trev, Here is a code snippet which should help you out on this issue: //Create TreeNodeAdvStyleInfo TreeNodeAdvStyleInfo si = new TreeNodeAdvStyleInfo(); //Set TreeNodeAdvStyleInfo values si.TextColor = Color.AntiqueWhite; //Set the node style this.treeViewAdv2.BaseStyles["MyBaseStyle"] = si; this.treeViewAdv2.Nodes[0].NodeData.BaseStyle ="MyBaseStyle"; Regards, Arun

Live Chat Icon For mobile
Up arrow icon