TreeNode.DataBound Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value that indicates whether the node was created through data binding.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[BrowsableAttribute(false)]
public bool DataBound { get; }

Property Value

Type: System.Boolean

true if the node was created through data binding; otherwise, false.

The DataBound property is used to programmatically determine whether the node was created through data binding. Because dynamic and static content cannot be mixed in the same node, this property is commonly used when populating a TreeView control dynamically to determine whether the node contains static content.

The value of this property is stored in view state.

.NET Framework
Available since 2.0
Return to top
Show: