TreeView::SelectedValue Property

 

Gets the value of the selected node.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
[BrowsableAttribute(false)]
property String^ SelectedValue {
	String^ get();
}

Property Value

Type: System::String^

The value of the selected node.

The SelectedValue property provides a convenient way to determine the value of the selected node. This property simply returns the value of the Value property of the TreeNode object that is referred to by the SelectedNode property. If no node is currently selected in the TreeView control, an empty string ("") is returned.

.NET Framework
Available since 2.0
Return to top
Show: