Icon

DlhSoft Hierarchical Data Light Library

for Silverlight™ 4+, and Windows® Presentation Foundation (WPF) and .NET 4+

DataTreeGrid Control

DataTreeGrid control is used to display and update a list of node items (DataTreeGridItem objects), and it is part of Hierarchical Data Light Library for Silverlight™ 4/WPF 4.


Screenshots and Intro Source Code (Silverlight™)

  • Basic usage:

    DataTreeGrid basic usage

    <hdc:DataTreeGrid>
        <hdc:DataTreeGrid.Columns>
            <hdc:DataTreeGridColumn Header="Node"/>
            <d:DataGridTextColumn Header="Indentation" Binding="{Binding Indentation}" IsReadOnly="True"/>
            <d:DataGridCheckBoxColumn Header="IsExpanded" Binding="{Binding IsExpanded}" IsReadOnly="True"/>
        </hdc:DataTreeGrid.Columns>
        <hdc:DataTreeGrid.Items>
            <hdc:DataTreeGridItem Content="Node 1"/>
            <hdc:DataTreeGridItem Content="Node 1.1" Indentation="1"/>
            <hdc:DataTreeGridItem Content="Node 1.2" Indentation="1"/>
            <hdc:DataTreeGridItem Content="Node 2"/>
            <hdc:DataTreeGridItem Content="Node 2.1" Indentation="1"/>
            <hdc:DataTreeGridItem Content="Node 2.2" Indentation="1"/>
            <hdc:DataTreeGridItem Content="Node 2.2.1" Indentation="2"/>
            <hdc:DataTreeGridItem Content="Node 2.2.2" Indentation="2"/>
        </hdc:DataTreeGrid.Items>
    </hdc:DataTreeGrid>

  • Custom properties:

    DataTreeGrid custom properties
Terms of Use Privacy Statement