i am using a Treeview from .Net Compact Framework for an application running on WindowsMobile 6.x . This Treeview is manipulated with the afterselect() method(lazy loading of nodes) The Treeview works quite fine as long as all nodes can be presented on the
However, as soon as the number of nodes is too big to be represented on one screen a fatal error occurs. In this case the treeview autoscrolls to to the SelectedNode. Hence, the rootnode of the treeview is not viible on the display. When i select now a node
in the treeview, which is displayed somewhere over the former selected node the display is redrawn using the upper left corner of the former display representation as origin. This doesnt sound that terrible but followng problems occur which make the situation
1. The autscrollbars have vanished. There is no way to access the rootnode.
2.The Touchscreen is notifying clicks as if the Rootnode would be displayed. Hence, to select a node You need to click so many pixels below the node You want to select as the representation is shifted.
3. Clearing and redrawing the Treeview does not help. In most cases You need to restart the application.
4. Selecting the rootnode does help. If an action causes the rootnode to bes selected the shift vanishs.
I would be glad, if anyone could help me here
Thanks in advance and regards