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 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
by gggustafson
By modifying a recursive data structure, the creation of a TreeView can be simplified.

Discussions

by eljainc on Multi-Select TreeView Control in C#
by Psycho_Coder on technical blog "L-Systems - Tree Fractal"
by Angel Ivanov on technical blog "L-Systems - Tree Fractal"
by ??? on A Tree List Control
by Franc Morales on CStaticTreeCtrl - A CStatic derived custom...

All Articles

Sort by Updated

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

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

Tree Controls - Custom Tree Controls 

3 Feb 2014  
Fredrik Bornander
Showing how to prune nodes of a TreeView as a means of searching
19 Feb 2013  
syed_babu
Tree control with custom checkbox with several other features.
2 Sep 2011  
JRINC
Preserve the node states in a TreeView by adding new members and using inheritance.
26 Apr 2011  
Eitan Michaelson
A custom tree control for Win32.
29 Dec 2010  
yonken
A multi-select tree control that is based on Richard's implementation
4 Sep 2008  
Plamen Kovandjiev
This control draws circles that include text and links them with a line
22 Apr 2008  
ANURAG VISHNOI
Article describes how to add icons in WPF TreeView
20 Feb 2008  
jkristia
TreeView with Columns and (partially) Design Time support
12 Jan 2008  
Sarafian
A Vista Explorer like implementation of a control that represents hierachical data.
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.
10 Nov 2005  
Amit Ziv
A tree control that is like a template and stores items.
14 Oct 2005  
Doga Arinir
A CTreeCtrl derived class which is both: a normal CTreeCtrl or a fully custom drawn vertical tree control.
21 Sep 2005  
JimAlsup
An colorful owner drawn CTreeCtrl derived class loosly modeled after Skype's main window.
25 Jul 2005  
Jörg König
Implementation of a reusable tree control with many features.
21 Feb 2005  
AdrienP
An article on how to select folders and subfolders in CTreeCtrl.
22 Dec 2004  
Sudheesh.P.S
This article describes how to create a multiselect drag image in CTreeCtrl.
3 Apr 2004  
A. Riazi
A tree control to show installed devices like Device Manager.
15 Dec 2003  
Yossi Patt
A fully-editable Tree Editor
3 Dec 2002  
RedZenBird
Tree control allowing 'per item style' and requiring no bitmap arrays.
25 Oct 2002  
Johnson Zhou
Adding a checkbox along with tree items.
20 Sep 2002  
Matthew R. Miller
An article on an easy and neat way to include options, preferences, or settings into your applications
27 May 2002  
lion
Allows to display color items and change the font style
10 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.
2 Jan 2002  
sramsay
Custom MFC tree control that support dynamic editable items
Sort by Updated

Tree Controls - General 

9 Nov 2013  
Jakob Lithner
Extension to the TreeView control making it very fast to load items
16 Jul 2013  
RB Starkey
How to create a tree-view control using an Access table and form.
5 Sep 2010  
red_moon
A treeview with multiple columns
29 Mar 2010  
Phil Outram
A basic tree control that ties together all the functionality to make items fully editable and moveable.
29 Jan 2010  
Irfan alam
Implementation of Drag and Drop feature in WPF TreeView Control
22 Jun 2009  
Siddhartha S.
This article demonstrates editing a tree structure and saving the job using serialization.
24 May 2009  
terpy
A quick and easy way to enable multi-select in a TreeView, and an easy way to iterate selected nodes.
5 May 2009  
Ben Aldhouse
A project using the Windows Explorer Framework and some API stuff
26 Jan 2009  
zebulon75018
Xml Introspection, TreeView node and PropertyGrid
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.
28 Oct 2008  
syed_babu
This tree control allows the user to select multiple tree items and enable selection through rubber banding.
3 Oct 2008  
Thomas Gerber
A WPF BreadcrumbBar implementation.
4 Apr 2008  
Ayush Shrestha
Easy way to implement multiselect in treeviews without using custom controls
30 Jan 2008  
Mike Appleby
Populate a TreeView from your object model
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.
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.
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
7 Jul 2006  
Le Sourcier
This article explains how to use 32 bit icons in a CTreeCtrl.
3 May 2006  
Andreas Loeffler
Extend derived CTreeCtrl classes with an easy and fast to use approach for XML serialisation.
26 Apr 2006  
Cornelius Eichhorst
This article demonstrates an enhanced version of Matthew R. Millers Option Tree
2 Feb 2005  
skybirdcao
A tree editor control with toolbar, that can be edited conveniently.
17 Dec 2003  
Tibor Blazko, René Greiner
An article about an open source and free fast tree control
10 May 2003  
Barretto VN
Eunumdesk Clones
24 Apr 2003  
Paul Vickery
Function to move or copy items and their children in a tree control
27 Mar 2003  
Bengi
Using the Tree control using pure Win32 APIs
17 Mar 2003  
Roger Allen
A base class that provides all the functions you need to print a CTreeCtrl
15 Jan 2003  
Dan Clark
An article that allows easy drag & drop and a bitmap background with other tree control functions.
29 Oct 2002  
Ozgur Aydin Yuksel
An article on using CTreeCtrl in a simpler way (I believe).
4 Aug 2002  
Barretto VN
System Drives Browsing Tree
22 May 2002  
Vivek Rajan
Save and Restore multiple tree states in your MFC applications
28 Mar 2002  
Julien Martino
An iterator to parse subtree and execute function on each item/node
12 Jun 2001  
Francisco José Sen del Prado
Three tree control templates to easily operate with CTreeCtrl derived objects
6 Sep 2000  
John McTainsh
An article explaining browsing my computer and the network using a TreeCtrl
23 Aug 2000  
Tibor Blazko
Some notes on speed issues with the MS Tree control
4 Mar 2000  
PJ Naughter
A freeware MFC class to provide a tree options control.
4 Mar 2000  
PJ Naughter
Implements a tree control similar to the left hand side of Windows Explorer.
24 Feb 2000  
Sardaukar
A very simple manager for shared folders using tree control drag & drop
18 Jan 2000  
Koay Kah Hoe
Code to add printing capabilities to a Tree View.
Sort by Updated

Tree Controls - Tree/List Hybrids 

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

TreeView Controls 

22 Mar 2014  
Mr.PoorEnglish
Treeview with Checkboxes supporting 3-state-logic
27 May 2013  
Chris Richner
Supports Explorer, SingleChecked and RecursiveChecked mode (checkboxes). Lets you specify the displayed drive types etc...
29 Nov 2012  
Tom John
Extending the TreeView control to support drag and drop and persistance.
29 Feb 2012  
Young Ye
Enhance performance of WPF Treeview control while loading large amount of two level broad data
30 Nov 2011  
Marc Clifton
Revisiting the XTree implementation, using a generic controller.
8 Aug 2011  
Hiren Khirsaria
Describes how to change appearance of Treeview using custom style
30 May 2011  
RikTheVeggie
A Tri-State Tree View designed for Directory Browsing and Installers
11 May 2011  
gaps96
Draws sets of tree nodes in a vertical way. Allows to Export an Image to SVG.
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
12 Jan 2010  
Dalibor Carapic
An override of the default .NET 2.0 TreeView control which supports tri-state logic for its tree nodes.
20 Nov 2009  
J.Guyette
Workarounds for not being able to inherit from TreeViewCollection, and for having a read-only Nodes property
20 Aug 2008  
Siddhartha S.
The class presented here allows the user to navigate the TreeNodes in a TreeView control
12 Jul 2008  
izotov
An article on how to populate large TreeViews on a background thread
2 Jul 2008  
darkzangel
The MVC (Model-View-Controller) pattern being used to populate a TreeView.
20 Jun 2008  
Paul D Dickinson
Virtualizing Tree View a WPF custom control base on a ListBox
14 Jun 2008  
Mohd Arshad (Sam)
Working with Multiple Images with Each TreeNode
3 May 2008  
Popangler
A simple clone of the Visual Studio 2005 toolbox using a standard treeview
12 Feb 2008  
virtual.aussie
A custom made TreeView with Windows Vista look.
22 Jan 2008  
salysle
An article about working with TreeView controls
22 Jan 2008  
salysle
An article about working with TreeView controls
14 Dec 2007  
Evert Timmer
Tri-state checkboxes, user-defined state images, disable checkboxes per node...
25 Oct 2007  
n2jtx
An example using the new TreeView control TVS_EX_MULTISELECT option with C# and .NET.
8 Oct 2007  
grega007
A tri-state TreeView using VB.NET.
20 Sep 2007  
Andrew D. Weiss
An extension of the .NET Treeview control to provide multiselect capabilities
15 Aug 2007  
Jacek Gajek
TreeView control in which nodes dynamically load themselves while expanding
25 Oct 2006  
Jorge Bay Gondra
A TreeView that can be bound to a DataTable, and can keep track of changes in it.
21 Sep 2006  
Mattman206
This article demonstrates how to use a ComboBox dropdown to select the text for nodes in a TreeView.
13 Jul 2006  
azamsharp
How to populate a TreeView control from the database.
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.
6 Jul 2006  
Marc Clifton
A general purpose tree combined with automated DataRow management.
5 Jun 2006  
Chris Richner
Use custom state images for your nodes within minutes.
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
29 May 2006  
Marc Clifton
A template driven tree control.
3 May 2006  
OrlandoCurioso
Ownerdrawn treeview draws the missing treelines.
10 Apr 2006  
Vlad Untu
A TreeView control that implements node search.
9 Apr 2006  
TL Wallace
This code will demonstrates databinding in a TreeView.
21 Feb 2006  
MrPJ
An article describing how to create an Explorer-style treeview with system icons.
21 Feb 2006  
Josh Smith
A utility class which makes it easier to create recursive methods that operate on the TreeView control.
7 Jan 2006  
Marc Clifton
A template driven tree.
4 Jan 2006  
UsualDosage
Details of how to load XML into a TreeView, and how to save XML to disk from a TreeView.
2 Nov 2005  
Ebse
A TreeView control with tri-state checkboxes.
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.
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.
4 Aug 2005  
SNL|ice
Store text information directly in the nodes of a TreeView control.
8 Jul 2005  
Michael Ceranski
A filesystem treeview for .NET.
14 Jun 2005  
j-hannemann
A class that implements routines for saving and loading TreeView content using serialization.
6 Jun 2005  
Gabe Anguiano
How to do a TreeView rearrange.
17 Apr 2005  
Martin Welker
This article shows how to stop right scrolling when using the EnsureVisible() method for TreeView controls.
27 Mar 2005  
Mike Chaliy
The control extends standard TreeView control to make it fully data bind.
24 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.
24 Jan 2005  
Michea77
This article shows how to implement an Explorer like treeview drag and drop in C#.
7 Jan 2005  
Wai Friend
A way to bind up a simple TreeView control.
16 Aug 2004  
Mikael Wiberg
Multi-select Treeview control v2.0
4 Aug 2004  
LZF
C# implementation of data binding TreeView.
1 Aug 2004  
yetanotherchris
A treeview that has drag and drop built in.
8 Jun 2004  
John Whiteman
The XmlTreeView adds a range of useful features to the standard TreeView for working with XML.
12 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.
3 Feb 2004  
Gabe Anguiano
A treeview control that drops down much like a combobox.
11 Oct 2003  
Chris Richner
Internet Explorer advanced settings tree view clone. Supports checkbox and radio button nodes.
16 Jun 2003  
Mikael Wiberg
A TreeView control that implements multiple selection in different ways.
4 Jun 2003  
ItsAWonderfulLife
This is basically an article which demonstrates the Drag & Drop operation in a TreeView.
26 Oct 2002  
Furty
A simple explorer-like FolderTreeView control for C#
19 Aug 2002  
Stephane Rodriguez.
Enable multiple selection in .NET treeview controls

Advertise | Privacy | Mobile
Web03 | 2.8.140705.1 | Last Updated 9 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid