Skip to main content
All docs
V22.1

TreeViewControl.ExpandStateFieldName Property

Gets or sets the field name in a data source that specifies expanded nodes. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.dll

Declaration

public string ExpandStateFieldName { get; set; }

Property Value

Type Description
String

The field name in a data source that specifies expanded nodes.

Remarks

<dxg:TreeViewControl ItemsSource="{Binding EmployeeDepartments}" 
                     ChildNodesPath="Employees" 
                     TreeViewFieldName="Name"
                     ExpandStateFieldName="Expanded"/>
public class EmployeeDepartment {
    public string Name { get; set; }
    public ObservableCollection<Employee> Employees { get; }
    public bool Expanded { get; set; }
}
See Also