System.Web.UI.WebControls Namespace TreeNode Class
.NET Framework version 2.0
Returns the path to the data that is bound to the TreeNode control.
Script |
[ String variable = ] TreeNode.DataPath |
This property can only be used programmatically; it cannot be set when declaring the control.
variable |
A String that represents the path to the data that is bound to the node. |
The property is read only with no default value.
Use the DataPath property to determine the path to the data that is bound to the current node.
The value of this property comes from the hierarchical data source control to which the TreeView control is bound.
The DataPath property value is commonly used when calling the GetHierarchicalView method, which returns a HierarchicalDataSourceView object that contains the data at the specified path.
TreeNode Members