asp.net.ph

TreeNode.DataPath Property

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.

Syntax


Script [ String variable = ] TreeNode.DataPath

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value


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.

Remarks

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.

See Also

TreeNode Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph