Back to Devexpress

TreeList View

wpf-9566-controls-and-libraries-data-grid-views-treelist-view.md

latest1.8 KB
Original Source

TreeList View

  • Feb 17, 2023
  • 2 minutes to read

The TreeListView is designed to display information in a tree - in either bound or unbound mode. Data is arranged in columns and nodes (rows). Grid columns correspond to data fields in a data source and nodes represent data records.

xaml
<dxg:GridControl AutoGenerateColumns="AddNew" 
                 EnableSmartColumnsGeneration="True" 
                 ItemsSource="{Binding Customers}">
    <dxg:GridControl.View>
        <dxg:TreeListView Name="treeListView" AutoWidth="True"
                          KeyFieldName="ID" ParentFieldName="ParentID"
                          TreeDerivationMode="Selfreference"/>
    </dxg:GridControl.View>
</dxg:GridControl>

Along with the standard data-aware and presentation features such as data editing, sorting, filtering, summary calculation, built-in validation, unbound columns, runtime column customization and so on, its specific features include: