TreeView.SetNodeDataBound(TreeNode, Boolean) Method

Definition

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

C#
protected void SetNodeDataBound(System.Web.UI.WebControls.TreeNode node, bool dataBound);

Parameters

node
TreeNode

The TreeNode to set.

dataBound
Boolean

true to set the node as data-bound; otherwise, false.

Remarks

Use the SetNodeDataBound method to indicate whether the specified TreeNode is data-bound.

Notes to Inheritors

The SetNodeDataBound(TreeNode, Boolean) method is provided to allow a control that is derived from the TreeView control to set the DataBound property on a node.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also