Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:772803
More Search Options
RSS Available
Matching Posts
Re: How to delete nodes in a Treeview
Int32 count = TreeView1.SelectedNode.ChildNodes.Count; for (int i = 0; i < count; i++) { TreeView1.SelectedNode.ChildNodes.Remove(TreeView1.SelectedNode.ChildNodes[0]); } remove childs from selected parent
Posted to
Data Presentation Controls
(Forum)
by
asmvax
on 12/5/2007
Re: Looping through TreeView Nodes?
i've made some changes in your code: you will call with SelectNodesRecursive(what node to select ex:"10", name of the treeview ex: treeview1); public static void SelectNodesRecursive(string searchValue,TreeView Tv) { foreach (TreeNode tn in Tv.Nodes) { if (tn.Value == searchValue) { tn.Expand(); tn.Select(); break; } if (tn.ChildNodes.Count > 0) { foreach (TreeNode cTn in tn.ChildNodes) { int a = SelectChildrenRecursive(cTn, searchValue); if (a == 1) { tn.Expand(); } } } } } private
Posted to
Internet Explorer Web Controls
(Forum)
by
asmvax
on 11/25/2007
Page 1 of 1 (2 items)
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online