I have a GUI where I have a tree view in the left pane and a gridview in the right pane. When I select a treenode, I change the gridvoew to match the tree node and this was working fine.
Now I am trying to add drag and drop support and find that I get the AfterSelect event before SelectionDragStart event and so deselect the old view, select a new view and now I can't drag to where I was hoping to drag to.
What I would like to do is if the user used the mouse to start dragging a tree node is to not have that node selected but just dragged.
Is this possible or normal?
Thanks, Dave
You should probably take a look at the UltraTree.Override.SelectionType property; I think in your case you want to set it to Extended/Single, i.e., not the values with 'AutoDrag' in their name.
Thanks Brian but that does not work for me. I set that property to various settings, and in all cases, the events fire as: AfterActivate, AfterSelect on mouse down then SelectionDragStart when I nove the mouse while held down and so I have already changed views as a new node has been selected. WHat I want to happen is to get a DragStart when the mouse is down and moved and so I guess no activate or select until mouse up. Is this reasonable to want? How else would one start dragging a node without it being selected? Thanks, Dave