Icon

DlhSoft Hierarchical Data Library

for Windows® Forms and .NET 2.0 SP2

DataTreeGridView Control

DataTreeGridView control is used to display and update a list of node items, and it is part of Hierarchical Data Library for Windows® Forms 2.0.


Screenshots and Intro Source Code

  • Basic usage:

    DataTreeGridView basic usage

    dataTreeGridView.Columns.Add(nameDataGridViewColumn);
    [...]
    dataTreeGridView.IndentLevelMember = "Indent";
    dataTreeGridView.IsExpandedMember = "Expanded";
    [...]
    BindingList<MyNode> nodes = new BindingList<MyNode>();
    MyNode n1 = new MyNode();
    n1.Name = "Node1";
    [...]
    nodes.Add(n1);
    [...]
    dataTreeGridView.DataSource = nodes;
    [...]
    public class MyNode : INotifyPropertyChanged
    {
        [...]
    }

Terms of Use Privacy Statement