G
Guest
The MSDN has an article titled:
"HOW TO: Dynamically Add Nodes to a TreeView WebBrowser Control by Using
Visual C# .NET".
The article exploits a property of the TreeNode control called 'Expandable'.
However, the property is available only for the Web Controls, and to my
surprise I couldn't find it among the TreeNode Windows Forms properties.
This Expandable property is crucial if you want to develop a smart, dynamic
tree view which doesn't load all the data at once, but does it automatically
as the user requests to expand the node.
This is especially important if you want to bind the tree view to a database
which can contain thousands of rows and you don't want to load all the nodes
if the user doesn't even request it.
Without the Expandable property the node doesn't have the ability to expand
if you don't feed the sub-nodes during the tree creation. In other words the
node doesn't have the 'plus' box to trigger the 'Expand' request. If the
subnodes are supposed to be provided only on the expand request, then you are
stuck.
Is there any workaround for this problem?
Thanks
Cezar
"HOW TO: Dynamically Add Nodes to a TreeView WebBrowser Control by Using
Visual C# .NET".
The article exploits a property of the TreeNode control called 'Expandable'.
However, the property is available only for the Web Controls, and to my
surprise I couldn't find it among the TreeNode Windows Forms properties.
This Expandable property is crucial if you want to develop a smart, dynamic
tree view which doesn't load all the data at once, but does it automatically
as the user requests to expand the node.
This is especially important if you want to bind the tree view to a database
which can contain thousands of rows and you don't want to load all the nodes
if the user doesn't even request it.
Without the Expandable property the node doesn't have the ability to expand
if you don't feed the sub-nodes during the tree creation. In other words the
node doesn't have the 'plus' box to trigger the 'Expand' request. If the
subnodes are supposed to be provided only on the expand request, then you are
stuck.
Is there any workaround for this problem?
Thanks
Cezar