System.Web.UI.WebControls.TreeView.SetNodeDataBound Method

Allows a derived class to set whether the specified System.Web.UI.WebControls.TreeNode control is data-bound.

Syntax

protected void SetNodeDataBound (TreeNode node, bool dataBound)

Parameters

node
The System.Web.UI.WebControls.TreeNode to set.
dataBound
true to set the node as data-bound; otherwise, false.

Remarks

Use the TreeView.SetNodeDataBound(TreeNode, bool) method to indicate whether the specified System.Web.UI.WebControls.TreeNode is data-bound.

Requirements

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