| |||||
TreeView.ShowLines PropertySystem.Web.UI.WebControls Namespace TreeView Class .NET Framework version 2.0 Sets or retireves a value indicating whether lines connecting child nodes to parent nodes are displayed in a TreeView control. Syntax
Property ValueThis property accepts or returns only a boolean value: true to display lines connecting nodes; otherwise, false. Default value is false. RemarksUse the ShowLines property to specify whether the lines that are connecting child nodes to parent nodes are displayed in a TreeView control. When this property is set to true, the TreeView control searches the Web-accessible folder that is specified by the LineImagesFolder property for the line images.
ExampleThe following example demonstrates how to use the ShowLines property to display lines connecting nodes in the TreeView control. For this example to work, you should have a set of line images stored in the appopriate folder. <asp:treeview id = "myTreeView" runat = "server"
expanddepth=1
nodestyle-horizontalpadding=3
lineimagesfolder = "~/shared/images/lines"
showlines
onTreeNodePopulate = "PopulateNode">
<nodes>
<asp:treenode text = "aspxtreme" populateondemand />
</nodes>
</asp:treeview>
See Also |
| ||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme