.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum


Posted By: Aamrapali Tamgadge     Posted Date: May 14, 2011    Points:5   Category :ASP.Net
Hi.Me Having One Treeview,it has some nodes and there subnodes.but when i run the aspx page all the nodes and subnodes are in expand stage i need only nodes to see first when the user click on nodes then related subnodes to be expand.how can i do this.

Author: Dhiraj Ranka          Accepted Answer   
Posted Date: May 15, 2011     Points: 40   


You can set the IsExpanded property to false for all the nodes.

More info on TreeNode http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode.aspx

Hope this helps

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com
Author: Aamrapali Tamgadge             
Posted Date: May 15, 2011     Points: 20   

Thanks Dhiraj Sir I Got d Solution.

Software Programmer At OTIS ISRC

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend