Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TreeView with columns

I need a multi columned Treeview for an app I am writing, I was wondering if anyone knew of a free working (in Vs-2010) multi columned Treeview.

like image 874
Vade Avatar asked Feb 06 '11 11:02

Vade


People also ask

What is TreeView control explain?

A tree-view control is a window that displays a hierarchical list of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item can have a list of subitems associated with it.

How do I know if TreeView node is selected?

SelectedNode; if ( tn == null ) Console. WriteLine("No tree node selected."); else Console. WriteLine("Selected tree node {0}.", tn.Name ); You can compare the returned TreeNode reference to the TreeNode you're looking for, and so check if it's currently selected.


1 Answers

There are a number of sample controls to be found around the web:

  • TreeViewAdv for .Net
  • TreeView with Columns
  • ContainerListView and TreeListView

But the all-time favorite is probably the ObjectListView, which provides an expandable, multi-column ListView, along with many other incredibly handy features:

   ObjectListView sample

like image 174
Cody Gray Avatar answered Oct 06 '22 01:10

Cody Gray