954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Custom TreeView Control

Hi All,
I want to create a custom treeview control in which some nodes will have image and some will not. What should do for this, Need some Help.

saurabh singh
Newbie Poster
9 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

You can do it from TreeView properties, it's so easy to make it on your own.

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Treeview allows either to have image or not at all. It does not allow image in some nodes and some nodes without image.

saurabh singh
Newbie Poster
9 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

You can do it programatically Node.Image and set it by your hand..

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Sorry,I have not found any Node.Image Property instead we have to set it by ImageList Control. Once we use ImageList then treeview control automatically uses an image from imagelist to set to those nodes for which we have not set any image.

saurabh singh
Newbie Poster
9 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

I created this multi-column treeview control:
http://www.DigitalTools.com/GVT.aspx
What kind of help did you need? Where is your skill level now?

jjbrooks13
Newbie Poster
1 post since Feb 2009
Reputation Points: 10
Solved Threads: 0
 

You could also set a blank image for those who do not need an image.

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You