Click here to Skip to main content

Tree Controls

Great Reads

by ralph1957
This step-by step article describes how to populate a TreeView control by using XML data.
by Marc Clifton
Revisiting the XTree implementation, using a generic controller.
by seejay1120
A Fast Way to Update Treeview Nodes Using a Database as a Source
by leppie
Here is yet another alternative (originally from http://xacc.wordpress.com/2009/03/05/tree-traversal-extension-methods/[^]):public static class TreeExtensions{ public static IEnumerable TraverseDepthFirst( this T t, Func valueselect, Func<T,...

Latest Articles

by Pavel Torgashov
Fast and flexible replacing of standard WinForm’s controls: ListBox, CheckedListBox and TreeView.
by Thava Rajan
This tip is used to fix a workaround for a bug in double click on checkbox
by Psycho_Coder
Working example of a Tree fractal to demonstrate Turtle Graphics in Java
by Mr.PoorEnglish
Treeview with Checkboxes supporting 3-state-logic

Research Library

Read this paper to learn how you can create an intelligent, integrated...
By easing the process of integrating business events into automated...

Discussions

by Pavel Torgashov on article "FastTree and FastList"
by Thornik on article "FastTree and FastList"
by Pavel Torgashov on article "FastTree and FastList"
by Thornik on article "FastTree and FastList"
by Thornik on article "FastTree and FastList"

All Articles

Sort by Score

Tree Controls - 'Populate-on-Demand' Tree Controls 

10 Sep 2009
ralph1957
This step-by step article describes how to populate a TreeView control by using XML data.
6 Apr 2010
seejay1120
A Fast Way to Update Treeview Nodes Using a Database as a Source
26 Sep 2001
Paolo Messina
Two animation provider classes to add animation effects to any CWaitingTreeCtrl-derived class
26 Sep 2001
Paolo Messina
A CTreeCtrl derived class that populates the branches of a tree only when necessary, with optional visual effects.
18 Dec 2001
Paolo Messina
A CWaitingTreeCtrl-derived class to display Shell's resources
18 Dec 2012
Jaxon7
File search synchronised with TreeView/ListView. Climbing up and down the tree.
16 Oct 2000
Paolo Messina
A CWaitingTreeCtrl-derived class to display network resources.
Sort by Score

Tree Controls - Custom Tree Controls 

18 Feb 2013
Babu_Abdulsalam
Tree control with custom checkbox with several other features.
1 May 2006
Franc Morales
Step-by-step creation of a custom Tree control from a CStatic control, implementing basic functionality, eye-candy (font, bitmap background, etc.), scrolling (bars and wheel), multiline (wrapping) text, and audio context menu.
19 Sep 2002
Matthew R. Miller
An article on an easy and neat way to include options, preferences, or settings into your applications
14 Oct 2005
Doga Arinir
A CTreeCtrl derived class which is both: a normal CTreeCtrl or a fully custom drawn vertical tree control.
14 Dec 2003
Yossi Patt
A fully-editable Tree Editor
26 Apr 2011
Eitan Michaelson
A custom tree control for Win32.
1 Jan 2002
sramsay
Custom MFC tree control that support dynamic editable items
2 Feb 2014
Fredrik Bornander
Showing how to prune nodes of a TreeView as a means of searching
21 Sep 2005
JimAlsup
An colorful owner drawn CTreeCtrl derived class loosly modeled after Skype's main window.
2 Apr 2004
A. Riazi
A tree control to show installed devices like Device Manager.
20 Feb 2008
jkristia
TreeView with Columns and (partially) Design Time support
29 Dec 2010
yonken
A multi-select tree control that is based on Richard's implementation
20 Feb 2005
AdrienP
An article on how to select folders and subfolders in CTreeCtrl.
25 Jul 2005
Jörg König
Implementation of a reusable tree control with many features.
12 Jan 2008
aSarafian
A Vista Explorer like implementation of a control that represents hierachical data.
3 Sep 2008
Plamen Kovandjiev
This control draws circles that include text and links them with a line
21 Dec 2004
Sudheesh.P.S
This article describes how to create a multiselect drag image in CTreeCtrl.
2 Sep 2011
JRINC
Preserve the node states in a TreeView by adding new members and using inheritance.
24 Oct 2002
Johnson Zhou
Adding a checkbox along with tree items.
2 Dec 2002
RedZenBird
Tree control allowing 'per item style' and requiring no bitmap arrays.
9 Apr 2002
Johnson Zhou
In Visual Studio , you will find an auto-completion list when you type your code in the IDE. This is a similar control but using a tree.
21 Apr 2008
ANURAG VISHNOI
Article describes how to add icons in WPF TreeView
10 Nov 2005
Amit Ziv
A tree control that is like a template and stores items.
Sort by Score

Tree Controls - General 

16 Jul 2013
RB Starkey
How to create a tree-view control using an Access table and form.
3 Mar 2000
PJ Naughter
Implements a tree control similar to the left hand side of Windows Explorer.
1 Jan 2008
Hans Dietrich
XHtmlTree is an MFC control based on CTreeCtrl, with support for HTML text, web links, APP: links, XML load/save, Smart Checkboxes, and Drag & Drop.
20 Sep 2014U
Pavel Torgashov
Fast and flexible replacing of standard WinForm’s controls: ListBox, CheckedListBox and TreeView.
5 Sep 2000
John McTainsh
An article explaining browsing my computer and the network using a TreeCtrl
3 Oct 2008
Thomas Gerber
A WPF BreadcrumbBar implementation.
27 Mar 2002
Julien Martino
An iterator to parse subtree and execute function on each item/node
23 Apr 2003
Paul Vickery
Function to move or copy items and their children in a tree control
10 Dec 2008
Wael Alghool
Gathering of various algorithms into one library to transform Hierarchical trees between various formats, and allows them to be represented into SQL2005, the formats supported are TreeView, Textual, Tabular, Modified Preorder Tree Traversal and Graphical.
4 Jun 2007
Victor Ricklefs
MFC tree control showing the files in a manner similar to the left-hand side of Windows Explorer, but allowing selection of multiple files and folders for further processing in your program
5 Sep 2010
red_moon
A treeview with multiple columns
3 Mar 2000
PJ Naughter
A freeware MFC class to provide a tree options control.
9 Nov 2013
Jakob Lithner
Extension to the TreeView control making it very fast to load items
26 Mar 2003
Bengi
Using the Tree control using pure Win32 APIs
11 Jun 2001
Francisco José Sen del Prado
Three tree control templates to easily operate with CTreeCtrl derived objects
26 Apr 2006
Cornelius Eichhorst
This article demonstrates an enhanced version of Matthew R. Millers Option Tree
9 May 2003
Barretto VN
Eunumdesk Clones
22 Aug 2007
Paul Roberts
An owner-drawn CTreeCtrl that has checkboxes and open/close controls aligned vertically on the right hand edge of the tree for easy viewing regardless of the horizontal scroll position.
29 Mar 2010
Phil Outram
A basic tree control that ties together all the functionality to make items fully editable and moveable.
1 Feb 2005
skybirdcao
A tree editor control with toolbar, that can be edited conveniently.
16 Dec 2003
Tibor Blazko, René Greiner
An article about an open source and free fast tree control
22 Jun 2009
Siddhartha S.
This article demonstrates editing a tree structure and saving the job using serialization.
28 Oct 2002
Ozgur Aydin Yuksel
An article on using CTreeCtrl in a simpler way (I believe).
17 Jan 2000
Koay Kah Hoe
Code to add printing capabilities to a Tree View.
5 May 2009
Ben Aldhouse
A project using the Windows Explorer Framework and some API stuff
3 May 2006
Andreas Loeffler
Extend derived CTreeCtrl classes with an easy and fast to use approach for XML serialisation.
23 Feb 2000
Sardaukar
A very simple manager for shared folders using tree control drag & drop
29 Jan 2010
Irfan alam
Implementation of Drag and Drop feature in WPF TreeView Control
29 Jan 2008
Mike Appleby
Populate a TreeView from your object model
16 Mar 2003
Roger Allen
A base class that provides all the functions you need to print a CTreeCtrl
22 Aug 2000
Tibor Blazko
Some notes on speed issues with the MS Tree control
21 May 2002
Vivek Rajan
Save and Restore multiple tree states in your MFC applications
3 Aug 2002
Barretto VN
System Drives Browsing Tree
24 May 2009
terpy
A quick and easy way to enable multi-select in a TreeView, and an easy way to iterate selected nodes.
26 Jan 2009
zebulon75018
Xml Introspection, TreeView node and PropertyGrid
6 Jul 2006
Le Sourcier
This article explains how to use 32 bit icons in a CTreeCtrl.
4 Apr 2008
Ayush Shrestha
Easy way to implement multiselect in treeviews without using custom controls
14 Jan 2003
Dan Clark
An article that allows easy drag & drop and a bitmap background with other tree control functions.
27 Oct 2008
Babu_Abdulsalam
This tree control allows the user to select multiple tree items and enable selection through rubber banding.
Sort by Score

Tree Controls - Tree/List Hybrids 

19 Sep 2002
TigerX
A Tree List Control
25 Mar 2009
Alphons van der Heijden
A TreeView having columns.
19 Mar 2008
Oleg Krivtsov
Tree control with columns that can be easily used in MFC application
17 Mar 2000
Gerolf Reinwardt
A custom-drawn tree-list hybrid, with explanations on how the control was developed.
24 Jan 2002
ran wainstein
A CTreeCtrl derived class providing tooltips based on item data
1 Dec 1999
David Lantsman
A tree control / list control hybrid
13 Jun 2001
Gary Andrew Lewis
A Tree List/Tool Tip control embedded within a CView
12 Jun 2001
Gary Andrew Lewis
A Tree List/Tool Tip control embedded within a CView
Sort by Score

TreeView Controls 

30 Nov 2011
Marc Clifton
Revisiting the XTree implementation, using a generic controller.
10 Jul 2006
Andrey Gliznetsov
The TreeViewAdv control is designed to replace the standard .NET TreeView. It can do the same things, plus a number of advanced features like multi-selection or multi-column view.
11 May 2011
gaps96
Draws sets of tree nodes in a vertical way. Allows to Export an Image to SVG.
20 Feb 2006
Josh Smith
A utility class which makes it easier to create recursive methods that operate on the TreeView control.
30 May 2011
RikTheVeggie
A Tri-State Tree View designed for Directory Browsing and Installers
25 Oct 2002
Furty
A simple explorer-like FolderTreeView control for C#
27 May 2013
Chris Richner
Supports Explorer, SingleChecked and RecursiveChecked mode (checkboxes). Lets you specify the displayed drive types etc...
15 Jun 2003
Mikael Wiberg
A TreeView control that implements multiple selection in different ways.
6 Jun 2005
Gabe Anguiano
How to do a TreeView rearrange.
20 Sep 2007
Andrew D. Weiss
An extension of the .NET Treeview control to provide multiselect capabilities
6 Jul 2006
Marc Clifton
A general purpose tree combined with automated DataRow management.
30 Mar 2011
DreamCatcher2k10
1 alternative  
Provides another, simple way to get a tri-state TreeView, ensuring compatibility to all Windows UIs / styles
3 Apr 2010
Greg Burman
A lightweight event driven control with minimal recursion and no manual tracking of selected items
23 Jan 2005
Michea77
This article shows how to implement an Explorer like treeview drag and drop in C#.
3 Aug 2004
LZF
C# implementation of data binding TreeView.
22 Mar 2014
Mr.PoorEnglish
Treeview with Checkboxes supporting 3-state-logic
3 May 2008
Popangler
A simple clone of the Visual Studio 2005 toolbox using a standard treeview
17 Apr 2005
Martin Welker
This article shows how to stop right scrolling when using the EnsureVisible() method for TreeView controls.
3 Jun 2006
BvUsername
Two part series on how to create a three state Treeview in .NET 2.0 without using Win32 or a state imagelist
14 Dec 2007
Evert Timmer
Tri-state checkboxes, user-defined state images, disable checkboxes per node...
21 Sep 2006
Mattman206
This article demonstrates how to use a ComboBox dropdown to select the text for nodes in a TreeView.
10 Oct 2003
Chris Richner
Internet Explorer advanced settings tree view clone. Supports checkbox and radio button nodes.
15 Aug 2004
Mikael Wiberg
Multi-select Treeview control v2.0
8 Oct 2007
grega007
A tri-state TreeView using VB.NET.
22 Jan 2008
salysle
An article about working with TreeView controls
25 Oct 2006
Jorge Bay Gondra
A TreeView that can be bound to a DataTable, and can keep track of changes in it.
20 Jun 2008
Paul D Dickinson
Virtualizing Tree View a WPF custom control base on a ListBox
21 Feb 2006
MrPJ
An article describing how to create an Explorer-style treeview with system icons.
25 Oct 2007
n2jtx
An example using the new TreeView control TVS_EX_MULTISELECT option with C# and .NET.
13 Jul 2006
azamsharp
How to populate a TreeView control from the database.
4 Jan 2006
UsualDosage
Details of how to load XML into a TreeView, and how to save XML to disk from a TreeView.
6 Jan 2005
Wai Friend
A way to bind up a simple TreeView control.
3 May 2006
OrlandoCurioso
Ownerdrawn treeview draws the missing treelines.
2 Nov 2005
Ebse
A TreeView control with tri-state checkboxes.
29 Nov 2012
Tom John
Extending the TreeView control to support drag and drop and persistance.
7 Jan 2006
Marc Clifton
A template driven tree.
11 Mar 2004
Chris Richner
This tutorial shows how to use the System.Windows.Forms.TreeView control in a way that the end user and the developer can have phun at the end of the day.
19 Oct 2005
miklovan
The article describes how to supplement TreeView control's LabelEdit ability with some VS Solution Explorer like features, including label edit pre/post processing and input validation.
2 Feb 2004
Gabe Anguiano
A treeview control that drops down much like a combobox.
27 Mar 2005
Mike Chaliy
The control extends standard TreeView control to make it fully data bind.
7 Jun 2004
John Whiteman
The XmlTreeView adds a range of useful features to the standard TreeView for working with XML.
22 Jan 2008
salysle
An article about working with TreeView controls
8 Aug 2011
Hiren Khirsaria
Describes how to change appearance of Treeview using custom style
29 Feb 2012
Young Ye
Enhance performance of WPF Treeview control while loading large amount of two level broad data
20 Nov 2009
J.Guyette
Workarounds for not being able to inherit from TreeViewCollection, and for having a read-only Nodes property
10 Apr 2006
Vlad Untu
A TreeView control that implements node search.
29 May 2006
Marc Clifton
A template driven tree control.
31 Jul 2004
yetanotherchris
A treeview that has drag and drop built in.
8 Jul 2005
Michael Ceranski
A filesystem treeview for .NET.
4 Jun 2006
Chris Richner
Use custom state images for your nodes within minutes.
31 Oct 2005
Mike Sage
This control allows you to visually relate many to many related groups of data together in a two sided tree display.
14 Jun 2008
Mohd Arshad (Sam)
Working with Multiple Images with Each TreeNode
12 Jul 2008
izotov
An article on how to populate large TreeViews on a background thread
15 Aug 2007
Jacek Gajek
TreeView control in which nodes dynamically load themselves while expanding
19 Aug 2008
Siddhartha S.
The class presented here allows the user to navigate the TreeNodes in a TreeView control
13 Jun 2005
j-hannemann
A class that implements routines for saving and loading TreeView content using serialization.
18 Aug 2002
Stephane Rodriguez.
Enable multiple selection in .NET treeview controls
23 Feb 2005
Ahmed Mahmoud Mohammed
A control that makes users able to select predefined values from a ComboBox instead of editing them inside a TreeView.
3 Jun 2003
ItsAWonderfulLife
This is basically an article which demonstrates the Drag & Drop operation in a TreeView.
12 Feb 2008
virtual.aussie
A custom made TreeView with Windows Vista look.
4 Aug 2005
SNL|ice
Store text information directly in the nodes of a TreeView control.
9 Apr 2006
TL Wallace
This code will demonstrates databinding in a TreeView.
2 Jul 2008
darkzangel
The MVC (Model-View-Controller) pattern being used to populate a TreeView.
12 Jan 2010
Dalibor Carapic
An override of the default .NET 2.0 TreeView control which supports tri-state logic for its tree nodes.
5 Mar 2012
Fred_Informatix
This is an alternative for "Simple Tri-State TreeView"


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 20 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid