Search

You searched for the word(s): userid:772803

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)