470,814 Members | 743 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,814 developers. It's quick & easy.

TreeView in WinForms 2.0 dosen't update itself when nodes are adde

Hi everyone,

Within a Winform application, a treeview is contained in a User Control and
the User Control is then located within a splitview.

When the UserControl added some nodes into the Treeview, the treeview is not
displaying the added nodes, it just keep displaying the initial node added to
it during initallisation. Tried variious method like TreeView.Invalidate()
and TreeView.Update(). The code which adds nodes to the treeview is already
surrounded by TreeView.BeginUpdate() and TreeView.EndUpdate(). it is still
not displaying the new contents. However, if you ask it to display the number
of nodes in the tree, the Nodes.Count does indicate the new nodes are
inserted correctly.

Any ideas???
Nov 28 '05 #1
0 1345

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Casper JH Erasmus | last post: by
2 posts views Thread by Ernest Cook | last post: by
3 posts views Thread by Jan Wrage | last post: by
reply views Thread by Andrew Ducker | last post: by
2 posts views Thread by =?Utf-8?B?QU5V?= | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.