asp.net.ph

TreeView.PathSeparator Property

System.Web.UI.WebControls Namespace   TreeView Class


.NET Framework version 2.0

Returns or sets the character used to delimit the path of a node in a TreeView control.

Syntax


Inline <asp:treeview pathseparator = char ... >
Script TreeView.PathSeparator [ = char ]

Property Value


char The character used to delimit the path of a node.

The property is read/write with a default value of a slash mark ( / ).

Remarks

Use the PathSeparator property to specify the character used to delimit the path of a node in a TreeView control.

Each TreeNode object in a TreeView control has a ValuePath property that specifies the position of the node in the tree structure.

The value path is a string of delimited values that form the path from a root node to the current node.

Use this property to specify the delimiting character used to separate the values in the treeview path. This value is commonly used when parsing the list for the individual values.

Depending on the text displayed in the TreeView control, the delimiter character might need to be changed to prevent any conflicts. For example, if you set the delimiter character to a comma, the displayed text should not contain any commas; otherwise, the ValuePath property cannot be parsed accurately.

See Also

TreeView 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