Bewerken

Share via


TreeNode.DataBound Property

Definition

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

public:
 property bool DataBound { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool DataBound { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DataBound : bool
Public ReadOnly Property DataBound As Boolean

Property Value

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

Attributes

Remarks

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.

Applies to

See also