Back to Devexpress

TreeListControl Class

wpf-devexpress-dot-xpf-dot-grid-548d0be6.md

latest6.1 KB
Original Source

TreeListControl Class

The TreeList control.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[DXLicenseWpf]
public class TreeListControl :
    TreeListControlBase
vb
<DXLicenseWpf>
Public Class TreeListControl
    Inherits TreeListControlBase

The following members return TreeListControl objects:

Remarks

The WPF TreeList is a TreeView-Grid multi-purpose data-aware control that can display information as a TREE, a GRID, or a combination of both - in either data bound or unbound mode.

Tip

If you want to display only single-column data, you can use the TreeViewControl.

The TreeListControl inherits the majority of features exposed by the WPF Grid. This includes: data editing, automatic and custom sorting and filtering, full end-user customization options, editable unbound columns and DevExpress Expression editor, built-in validation, automatic and manual summary calculation, UI virtualization and per-pixel scrolling, template and style support, UI localization, extendable context menus, design-time support and much more…

The TreeListControl uses the same View-based data presentation approach introduced by the WPF GridControl. It presents the most widely used method of presenting data - TreeListView. This view supports multi-column display of hierarchical data, data shaping and layout customization features such as Sorting and Filtering, Data Editing via Embedded Cell Editors, Column Auto Width, Column Reordering and Resizing, Fixed Columns, Field Chooser Window and Extendable Context Menus.

To bind the TreeListControl to a data source, use the DataControlBase.ItemsSource property.

Concepts

The following code snippets (auto-collected from DevExpress Examples) contain references to the TreeListControl class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_CodeBehind/MainWindow.xaml#L11

xml
<Grid>
    <dxg:TreeListControl AutoGenerateColumns="AddNew" Name="grid">
        <dxg:TreeListControl.View>

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/MainWindow.xaml#L40

xml
<dxg:TreeListControl x:Name="treeList1" Grid.Column="1" Grid.Row="0" Grid.RowSpan="3" CurrentItemChanged="OnNewExampleSelected">
    <dxg:TreeListControl.Resources>

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/MainWindow.xaml#L40

xml
<dxg:TreeListControl x:Name="treeList1" Grid.Column="1" Grid.Row="0" Grid.RowSpan="3" CurrentItemChanged="OnNewExampleSelected">
    <dxg:TreeListControl.Resources>

wpf-richedit-document-api/CS/DXRichEditControlAPISample/MainWindow.xaml#L45

xml
<dxg:TreeListControl x:Name="treeList1" Grid.Column="1" Grid.Row="0" Grid.RowSpan="3" CurrentItemChanged="OnNewExampleSelected">
    <dxg:TreeListControl.Resources>

wpf-tree-list-generate-node-summaries-from-collection/CS/TreeList_DataBinding/MainWindow.xaml#L22

xml
<Grid>
    <dxg:TreeListControl Name="treeList" ItemsSource="{Binding SourceList}">

Inheritance

Show 11 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DataControlBase DevExpress.Xpf.Grid.GridDataControlBase TreeListControlBase TreeListControl

See Also

TreeListControl Members

DevExpress.Xpf.Grid Namespace