Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1120
add gridline on wintree
posted

How to set gridlines in winTree with multicolumn?
and how to set background for selected node and its children?

Thanks! 

Parents
No Data
Reply
  • 69832
    Offline posted

    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;

Children