Click here to Skip to main content
15,889,874 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi every one,

I want to implement listview for nth level menu. eg the render html will be something like this

HTML
<ul>
 <li> First Menu</li>
 <li> Second Menu
   <ul class="submenu">
       <li>
        Second Menu 1
       </li>
       <li>
        Second Menu 2
       </li>
       <li>
        Second Menu 3
       </li>
       <li>
        Second Menu 4
       </li>
       <li>
        Second Menu 5
           <ul class="submenu">
               <li>
                    Second Menu 11
               </li>
               <li>
                    Second Menu 21
               </li>
           </ul>
       </li>
   </ul>
 </li>
</ul>


The above example is just to make you understand what i want to implement, in the real situation the depth can be more than the above example.

My question is how to implement this using listview control.

Regards
Tanzeelur Rehman
Posted
Updated 16-Apr-13 19:02pm
v3
Comments
Sergey Alexandrovich Kryukov 17-Apr-13 1:04am    
Why ListView? There is TreeView?..
—SA
TanzeelurRehman 17-Apr-13 2:09am    
I want to implement listview because it is more optimized and can be the replacement of any .net control, due to its templated nature. I just want to implement how nested listview (upto nth level) can be implemented using listview

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



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