R
RP
I have a TreeView control. When a user clicks on a node, it must
change color.
I did:
TreeView1.SelectedNode.ForeColor = colors.Blue;
However, it must change the other nodes color to black, if they are in
blue. How to do this?
Secondly, when a user creates a new item for the TreeView, and saves
in the table, I want that the parent node for this newly created node
must be in an Expanded State when the tree is refreshed.
For this I have a GenerateTree() function which reads the values from
table and creates a tree.
change color.
I did:
TreeView1.SelectedNode.ForeColor = colors.Blue;
However, it must change the other nodes color to black, if they are in
blue. How to do this?
Secondly, when a user creates a new item for the TreeView, and saves
in the table, I want that the parent node for this newly created node
must be in an Expanded State when the tree is refreshed.
For this I have a GenerateTree() function which reads the values from
table and creates a tree.