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
245
Tree won't show programmatic node selection
posted

Why would not a WinTree display selected node when selection is done programmatically? I've tried doing doing the following:

a) tree.PerformAction(UltraTreeAction.FirstNode, false, false);

b) tree.ActiveNode = activeControl.Nodes[0];tree.PerformAction(UltraTreeAction.SelectActiveNode, false, false);

c) tree.Nodes[0].Selected = true;

nothing seems to get the the tree to highlight the selected node although I know the node is getting selected.The way this whole procedure works is we're clearing active ColumnSet, binding a new DataSet to the tree, then do tree.ExpandAll(), and then I want to select the first node in the tree. Of course clicking the mouse on the same node highlights the node. Is there something else I am missing? Thanks!

 

Using UltraWinTree 9.2.20092.2017

Parents
  • 69832
    Offline posted

    The control's HideSelection property defaults to true (in emulation of the .NET TreeView control), so selection is not depicted when the control is not focused.

Reply Children
No Data