Skip to main content

TreeListNodeBase.IsExpanded Property

Gets or sets whether or not the node is expanded.

Namespace: DevExpress.Data.TreeList

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public virtual bool IsExpanded { get; set; }

Property Value

Type Description

true to expand the node; otherwise, false.


To learn more, see Expanding and Collapsing Nodes .


In this demo, the TreeListView displays the file/folder tree. Child nodes that correspond to sub folders or files contained within a folder are dynamically created when a parent node is being expanded.

<Window x:Class="DynamicNodeLoading.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:dxg="">
        <dxg:GridControl Name="grid">
                <dxg:GridColumn FieldName="Name" />
                <dxg:GridColumn FieldName="ItemType" />
                <dxg:GridColumn FieldName="Size" />
                <dxg:GridColumn FieldName="FullName" />
                <dxg:TreeListView Name="treeListView1" AutoWidth="True"

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsExpanded property.


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.

See Also