I have data from a mysql database being displayed in a treeview structure using vb.net. The last childnode that is coded for needs to be a huperlink to the actual site that the hyperlink represents. Please please please does anyone know the code to do this, as I dont have a clue and have been working on it for days.
I want childnode2 (childrow3) HUGO to be the link to e.g. http://www.google.co.uk
Thanks alot in advance
Layla
Here is some of the code:
For Each childrow In parentrow.GetChildRows("ParentToRelation2")
For Each childrow2 In childrow.GetChildRows("Relation2ToChild")
childnode = parentnode.Nodes.Add(childrow2("names") & " " & childrow2(("GO_number"))) 'update treeview child
childs.Add(childrow2("names")) 'update seen array
End If
For Each childrow3 In childrow.GetChildRows("Relation2ToGene")
childnode2 = childnode.Nodes.Add(childrow3("HUGO")) ' update treeview gene
Next
Next childrow2
Next childrow
Next parentrow
TreeView2.EndUpdate()
End Sub
I want childnode2 (childrow3) HUGO to be the link to e.g. http://www.google.co.uk
Thanks alot in advance
Layla
Here is some of the code:
For Each childrow In parentrow.GetChildRows("ParentToRelation2")
For Each childrow2 In childrow.GetChildRows("Relation2ToChild")
childnode = parentnode.Nodes.Add(childrow2("names") & " " & childrow2(("GO_number"))) 'update treeview child
childs.Add(childrow2("names")) 'update seen array
End If
For Each childrow3 In childrow.GetChildRows("Relation2ToGene")
childnode2 = childnode.Nodes.Add(childrow3("HUGO")) ' update treeview gene
Next
Next childrow2
Next childrow
Next parentrow
TreeView2.EndUpdate()
End Sub