Flexible TreeView Flexible TreeView


Support & Community

Columns. Get started.

Previous Table of Contents Next

Flexible TreeView may show nodes either within an unlimited width or within columns. You can add or remove columns using the Columns property, either in the Visual Studio designer or programmatically.

Example:

// add column.
TreeColumn col = new TreeColumn();    // or new TreeColumn(“Column title”, 100);
col.Text = “Column title”;
col.Width = 100;
tree.Columns.Add(col);
 
// attach node control.
NodeTextBox tb = new NodeTextBox();
tb.AttachToColumn(col);               // or tb.ColumnId = col.Id;
tb.AttachTo(tree);
 
// add node.
Node node = new Node("test");
node.AttachTo(tree);


Node controls binding

Every column shows only those node controls, that are bound to it and visible. To bind a node control to the column, set the ColumnId node control property to a target column Id property value or set the Column property to a column instance.


Visibility

By default, a newly added column is visible in the treeview, but you can hide it by disabling the Visible property. When column visibility changes, the treeview raises the ColumnVisibilityChanged event.


Override column icons

By default, Flexible TreeView uses system or Office2007 theme column icons but you are able to override them by using the Images treeview property.


Additional API reference


Properties

  • Treeview.Options.Column.ShowVertLines – defines whether to show vertical lines that delimit columns;
  • Treeview.ColumnHeaderHeight - the columns header height.


Events

  • Treeview.ColumnInserted– raises when a column is added to the treeview;
  • Treeview.ColumnRemoved– raises when column is removed from the treeview;
  • Treeview.ColumnSortOrderChanging - raises when the column sort order is changing;
  • Treeview.ColumnSortOrderChanged - raises when the column sort order is changed;
  • Treeview.ColumnWidthChanged - raises when the column width is changed;
  • Treeview.ColumnVisibilityChanged - raises when the column is hidden or shown;
  • Treeview.ColumnIndexChanging - raises when the column index is changing;
  • Treeview.ColumnIndexChanged - raises when the column index is changed;
  • Treeview.ColumnMenuShowing - raises when the column context menu is showing.

Previous Top Next


Last news
Bookmark and Share
Use Flexible TreeView in WPF project
Sunday, 18 December 2011

Do you have a WPF project and want to use Flexible TreeView there? No problem!

Flexible TreeView v3.4
Friday, 16 December 2011

Flexible TreeView v3.4 maintenance release has been released.

Flexible TreeView v3.3
Friday, 23 September 2011

Flexible TreeView v3.3 maintenance release has been released. Separate assemblies for .NET 2.0, 4.0 and 4.0 Client Profile, HTML markup extension, etc.

Latest release

Version:
Release date:
3.4
Dec 16, 2011


Copyright © 2006-2012 ARMSoft. All rights reserved.