Click here to Skip to main content
15,903,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Asp.net + Hiding Tree View nodes ? Pin
Ryomin18-Aug-06 7:30
professionalRyomin18-Aug-06 7:30 
Hi,

I'm not sure if this is what you are looking for but here goes.

Tree Looks like this
Tree Node 1
Tree Node 1 a
Tree Node 1 b
Tree Node 1b i
Tree Node 1b ii
Tree Node 1 c

Lets say you want to hide Tree Node 1b ii

TreeView.DataSource = SiteMapDataSource1;
TreeView.DataBind();

TreeView.Nodes[0].ChildNodes[1].ChildNodes.RemoveAt(1); //This hides tree node 1b ii

Hope this helps.

Remember in order to do this you have to programatically bind the TreeView. Note remove the DataSourceID from the IDE first.

Good luck


Cheers

Disgyza
Programmer Analyst

GeneralRe: Asp.net + Hiding Tree View nodes ? Pin
Naveed Kamboh22-Aug-06 23:42
Naveed Kamboh22-Aug-06 23:42 
Questionpopup menu on right click on datagrid Pin
248912818-Aug-06 2:55
248912818-Aug-06 2:55 
AnswerRe: popup menu on right click on datagrid Pin
RaghuSanta21-Aug-06 21:11
RaghuSanta21-Aug-06 21:11 
QuestionHI Pin
Arun Kumar Babu18-Aug-06 1:24
Arun Kumar Babu18-Aug-06 1:24 
AnswerRe: Useless subject Pin
Guffa18-Aug-06 1:34
Guffa18-Aug-06 1:34 
QuestionHow to download file from server? Pin
vanolviv18-Aug-06 1:23
vanolviv18-Aug-06 1:23 
AnswerRe: How to download file from server? Pin
_AK_18-Aug-06 1:37
_AK_18-Aug-06 1:37 
GeneralRe: How to download file from server? Pin
vanolviv18-Aug-06 1:46
vanolviv18-Aug-06 1:46 
GeneralRe: How to download file from server? Pin
_AK_18-Aug-06 1:48
_AK_18-Aug-06 1:48 
Questionreading excel spreadsheet and save to access database Pin
playout18-Aug-06 1:22
playout18-Aug-06 1:22 
QuestionHow to Disable "page cannot be refreshed without resending information..." warning. Pin
Sivaprasad C18-Aug-06 1:13
Sivaprasad C18-Aug-06 1:13 
AnswerRe: How to Disable "page cannot be refreshed without resending information..." warning. Pin
Guffa18-Aug-06 1:38
Guffa18-Aug-06 1:38 
Questionselected text Pin
nannapanenikamalnath18-Aug-06 1:13
nannapanenikamalnath18-Aug-06 1:13 
QuestionReturn Value from window.ShowModalDialog() [modified] Pin
Tom Lawrance18-Aug-06 1:00
professionalTom Lawrance18-Aug-06 1:00 
AnswerRe: Return Value from window.ShowModalDialog() Pin
Tom Lawrance18-Aug-06 1:53
professionalTom Lawrance18-Aug-06 1:53 
QuestionForms Authentication Question Pin
matthias s.18-Aug-06 0:41
matthias s.18-Aug-06 0:41 
AnswerRe: Forms Authentication Question Pin
minhpc_bk18-Aug-06 12:21
minhpc_bk18-Aug-06 12:21 
GeneralRe: Forms Authentication Question Pin
matthias s.22-Aug-06 21:17
matthias s.22-Aug-06 21:17 
QuestionASP.NET caching in NLB scenario Pin
K.P.Kannan18-Aug-06 0:39
K.P.Kannan18-Aug-06 0:39 
AnswerRe: ASP.NET caching in NLB scenario Pin
minhpc_bk18-Aug-06 12:23
minhpc_bk18-Aug-06 12:23 
QuestionError Occurs while Paging in Datagrid!....... Pin
Prabs frm PGP18-Aug-06 0:05
Prabs frm PGP18-Aug-06 0:05 
AnswerRe: Error Occurs while Paging in Datagrid!....... Pin
Vipin Venugopal18-Aug-06 0:46
Vipin Venugopal18-Aug-06 0:46 
QuestionTree view Pin
BharadwajN17-Aug-06 23:51
BharadwajN17-Aug-06 23:51 
AnswerRe: Tree view Pin
coolestCoder18-Aug-06 0:33
coolestCoder18-Aug-06 0:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.