What I am trying to accomplish
I have got a virtual stringtree with sublevel rows that can be expanded by the user. The top hierarchy level of all nodes shall be draggable. But none of the sub node levels shall be.
How to test
For testing I use the Advanced Demo project of the current Virtual TreeView revision. The second demo (General abilities and features) has an adequate node hierarchy and you can drag nodes around.
Consideration
I thought I would be able to accomplish my task by using the stringtree's OnDragAllowed
event but it isn't fired when I am dragging.
My intention is to check the node level (GetNodeLevel
) before dragging starts and only allow dragging for the top node level 0.
How can I prevent certain node levels of a virtual stringtree from being dragged?