System.Web.UI.WebControls.TreeNode.DataItem Property

Gets the data item that is bound to the control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue(null)]
public object DataItem { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the System.Web.UI.WebControls.TreeView control is bound to a data source, such as an System.Web.UI.WebControls.XmlDataSource object, this property is set to the data item that is bound to this specific node. This property is commonly used to access the values of the data item.

Note:

This property is available only after data binding has occurred.

Requirements

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