How to set gridlines in winTree with multicolumn? and how to set background for selected node and its children?
Thanks!
You can get "gridlines" by setting the BorderStyleCell property of the UltraTreeColumnSet class.
The Override class exposes a SelectedNodeAppearance property; the Override is exposed by UltraTreeNode, TreeNodesCollection, NodeLevelOverrides, and UltraTree. You could set the selected appearance for a node and its children like so:
node.Override.SelectedNodeAppearance.BackColor = Color.Green;node.Nodes.Override.SelectedNodeAppearance.BackColor = Color.Green;
after I added the following 2 lines node.Override.SelectedNodeAppearance.BackColor = Color.Green;node.Nodes.Override.SelectedNodeAppearance.BackColor = Color.Green;
only selectedNode's color is modified, but its children are not.