Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,
I am using a treeview in my application.I am assigning a dataset as datasource to treeview but the lining of treeview is not proper.
One node is aligned left and next is align at some distance from left.

I am using this code

XML
<table>
                                              <tr>
                                                  <td style="text-align:left;border:0 none white;">
                                                  <ul style="list-style:none;">
                                                      <li>
                                                          <asp:TreeView ID="tvnodes" ExpandDepth="0" runat="server" OnTreeNodePopulate="tvnodes_TreeNodePopulate"
                                                          OnSelectedNodeChanged="tvnodes_SelectedNodeChanged" ImageSet="Arrows">
                                                          <%--<ParentNodeStyle ForeColor="Black" />--%>
                                                       </asp:TreeView>
                                                      </li>
                                                  </ul>
                                                  </td>
                                              </tr>
                                          </table>


What to do to display the treeview in a proper format
Posted
Comments
[no name] 25-May-12 11:24am    
You should use CSS
Sergey Alexandrovich Kryukov 25-May-12 12:11pm    
What is "proper"?
--SA
RashdSiddique 28-May-12 5:59am    
proper format means,parent node in straight line,child node should come in straight line and so on

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900