Ejemplo
TreeNode node = null; And in your expand event, assign the expanded node to the variable: private void treeView1_AfterExpand(object sender, TreeViewEventArgs e) And when a node is collapsed make it null: private void treeView1_AfterCollapse(object sender, TreeViewEventArgs e) And after loading data to the view do the following check: if (node != null) |
1 comentarios:
building TreeView nodes in C#.NET
Publicar un comentario