Last post Apr 30, 2011 02:25 AM by svibuk
Mar 29, 2011 05:12 AM|vijaypant|LINK
Hi need some directions regarding how we can extend a TreeView control and change its appearance to look like a hierarchical tree structure (or binary tree)? so that it can be used for generating a MLM tree from the database with clickable nodes.
Mar 29, 2011 08:06 AM|bharat_h03|LINK
You cannot derive the "TreeView" control for the change of it rendering style because its "TreeNodeCollection" is sealed one which in-charge of Saving/recreating all "TreeNodes" to/from viewstate. So better, you can derive from the "DataBoundControl" and
define your own way of Rendering "HierarchicalTreeView".
Mar 30, 2011 03:28 AM|vijaypant|LINK
hi bharat thanks for replying.
can u provide some links to samples or demos??
Mar 31, 2011 09:52 PM|Decker Dong - MSFT|LINK
Maybe you need this (For WinForm）：
And this is for asp.net Web Form：
And you can download the free codes at:
Apr 01, 2011 02:26 AM|bharat_h03|LINK
You can get excellent sample from this link.
Here they have also listed the Member and Methods available. Example is given in last section.
Apr 04, 2011 01:38 AM|vijaypant|LINK
Hi all thanks for replying.
But the problem is that, this msdn link just lists the api for HierarchicalDataBoundControl but i'm looking for a complete sample that implements the UI of the control like a Binary Tree. Something like
this. And each node can hold some controls there.
The nodes not necessarily needs to be round but should be able to hold other controls as well.
Apr 04, 2011 01:57 AM|Decker Dong - MSFT|LINK
I cannot see the picture. Are you sure that your link is right?
Apr 05, 2011 05:07 AM|vijaypant|LINK
Hi the link is working. Ok try
Apr 30, 2011 02:25 AM|svibuk|LINK
i aslo need a silimar help i need to develop a tree with 3 nodes . wht do i use & how culd i start with ??
i saw the image of the binary tree , it shld be similar but with 3 nodes instaed of 2 , using framework 2.0 asp.net