views:

8

answers:

0

Hii, I am a bigginer in using tree view control. I am using tree view control to make a simple tree like structure. But when i use show lines property it is not connecting to the root node. The code which i have written is as follows.

<asp:TreeView ID="treeSettings" runat="server" ImageSet="Simple2" NodeIndent="15"
                                        ShowLines="True">
                                        <ParentNodeStyle Font-Bold="False" />
                                        <HoverNodeStyle BackColor="#CCCCCC" BorderColor="#888888" BorderStyle="None" Font-Underline="True" />
                                        <SelectedNodeStyle BackColor="#FFCCCC"
                                            Font-Underline="False" HorizontalPadding="0px" VerticalPadding="1px" 
                                            Height="0px" />
                                        <Nodes>
                                            <asp:TreeNode Text="Settings" Value="Settings">
                                                <asp:TreeNode Text="Edit Task" Value="Edit Task"></asp:TreeNode>
                                                <asp:TreeNode Text="Assign" Value="Assign a Resource"></asp:TreeNode>
                                                <asp:TreeNode Text="Task Status" Value="Task Status"></asp:TreeNode>
                                            </asp:TreeNode>
                                        </Nodes>
                                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
                                            NodeSpacing="1px" VerticalPadding="0px" Width="100px" ChildNodesPadding="0px" />
                                        <LeafNodeStyle NodeSpacing="0px" />
                                    </asp:TreeView>