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
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.
Strangely enough, after I changed the HideSelection property to False (with the same result) I modified the code as following:
tree1.Select();tree1.PerformAction(UltraTreeAction.FirstNode, false, false);
Explicitly setting the tree control selected seems to have resolved that problem. Thanks!