My application presents a set navigational treeview on startup of the project. I allow the user to search for records using 1 of several child nore methods.
Now when they come back from that search a will need to add 1 or more additional child nodes
Example
Patient Selection
by Unit
by Next Review Date
Individual Patient
Consultant Note(s)
When user returns from say the individual Patient search I nees to load 1 or more child nodes under the Consultant Note(s) node
Patient Selection
by Unit
by Next Review Date
Individual Patient
Consultant Note(s)
Patient record 1
Patient record 2
Here is what I have (new at this control)
//adding the upper level node to the tree
treeViewProgressNotes.BeginUpdate()
// prevent repaint while adding nodes
aNode = treeViewProgressNotes.Nodes.Add("Patient Selection")
// then this will add a child at the next level
bNode = anode.Nodes.Add("by Unit")
bNode.Tag = 'Select by Unit, then Patient'
cNode = bnode.Nodes.Add("by Admission Date (multiple)")
cNode = bnode.Nodes.Add("by Next Review Date (multiple)")
cNode = bnode.Nodes.Add("Individual Patient")
cNode.Tag = 'Select by Unit, then Patient'
bNode = anode.Nodes.Add("by MedRec or Search")
bNode.Tag = 'Select by MR#, or do a Patient Search by Name'
bNode = anode.Nodes.Add("QuickSearch: Last 10 MR#'s Used")
bNode.Tag = 'Select from a list of up to last 10 patients accessed'
//adding 4 more upper level nodes at the tree root level
aNode = treeViewProgressNotes.Nodes.Add("Consultant Note(s)")
I want to ADD THEM HERE
Patient record 1
Patient record 2
How do I set the reference to this node (treeViewProgressNotes.Nodes.Add("Consultant Note(s)")
) in order to add some children??
Thanks
gollnick
Now when they come back from that search a will need to add 1 or more additional child nodes
Example
Patient Selection
by Unit
by Next Review Date
Individual Patient
Consultant Note(s)
When user returns from say the individual Patient search I nees to load 1 or more child nodes under the Consultant Note(s) node
Patient Selection
by Unit
by Next Review Date
Individual Patient
Consultant Note(s)
Patient record 1
Patient record 2
Here is what I have (new at this control)
//adding the upper level node to the tree
treeViewProgressNotes.BeginUpdate()
// prevent repaint while adding nodes
aNode = treeViewProgressNotes.Nodes.Add("Patient Selection")
// then this will add a child at the next level
bNode = anode.Nodes.Add("by Unit")
bNode.Tag = 'Select by Unit, then Patient'
cNode = bnode.Nodes.Add("by Admission Date (multiple)")
cNode = bnode.Nodes.Add("by Next Review Date (multiple)")
cNode = bnode.Nodes.Add("Individual Patient")
cNode.Tag = 'Select by Unit, then Patient'
bNode = anode.Nodes.Add("by MedRec or Search")
bNode.Tag = 'Select by MR#, or do a Patient Search by Name'
bNode = anode.Nodes.Add("QuickSearch: Last 10 MR#'s Used")
bNode.Tag = 'Select from a list of up to last 10 patients accessed'
//adding 4 more upper level nodes at the tree root level
aNode = treeViewProgressNotes.Nodes.Add("Consultant Note(s)")
I want to ADD THEM HERE
Patient record 1
Patient record 2
How do I set the reference to this node (treeViewProgressNotes.Nodes.Add("Consultant Note(s)")
) in order to add some children??
Thanks
gollnick