Seems a fairly simple request but i have not found a solution.
I’ve programatically added a root node to an asp.net treeview control. I want to change that node and only that node back color to red.
C# asp.net code please anyone? My code to add the node is below.
thanks,
Damo
TreeNode onjParent = new TreeNode(ItemShouldExist, ItemShouldExist);
onjParent.PopulateOnDemand = true;
TreeViewAddItems.Nodes.Add(onjParent);
onjParent.Checked = true;
This adds 10 nodes to a Treeview, and only node 4 has red background.
Edit: Changed font color to background.
Good luck!