System.Web.UI.WebControls.TreeNode.DataPath Property

Gets the path to the data bound to the node.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public string DataPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The TreeNode.DataPath property value is commonly used when calling the System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(string) method to provide the path to the data bound to the current node. This method then returns a System.Web.UI.HierarchicalDataSourceView object that contains the data at the specified path.

The value of this property is stored in view state.

Requirements

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