System.Web.UI.WebControls.TreeView.ExpandDepth Property

Gets or sets the number of levels that are expanded when a System.Web.UI.WebControls.TreeView control is displayed for the first time.

Syntax

[System.ComponentModel.TypeConverter("System.Web.UI.WebControls.TreeView+TreeViewExpandDepthConverter, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue(-1)]
public int ExpandDepth { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeView.ExpandDepth property to control the rendering of the System.Web.UI.WebControls.TreeView control the first time that it is displayed. On subsequent postbacks, the nodes retain their current expanded state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0