Hello
I currently have the following code to retrive records from a Dataset and populate the treeview. I would like to now place child nodes under each parent, from a different dataset where the seasons are equal (youll see what i mean in the code). Im really stuck as to how to do this:
Current Code:
Populate Treeview
Dim varTVItem As TreeNode
Dim varDSRow As DataRow
tvSeasons.Nodes.Clear()
dsSeasonData = DsSeasons1
For Each varDSRow In dsSeasonData.Tables("seasons").Rows
varTVItem = New TreeNode()
With varTVItem
.Text = varDSRow.Item("Season")
End With
tvSeasons.Nodes.Add(varTVItem)
Next
Thanks in advance
I currently have the following code to retrive records from a Dataset and populate the treeview. I would like to now place child nodes under each parent, from a different dataset where the seasons are equal (youll see what i mean in the code). Im really stuck as to how to do this:
Current Code:
Populate Treeview
Dim varTVItem As TreeNode
Dim varDSRow As DataRow
tvSeasons.Nodes.Clear()
dsSeasonData = DsSeasons1
For Each varDSRow In dsSeasonData.Tables("seasons").Rows
varTVItem = New TreeNode()
With varTVItem
.Text = varDSRow.Item("Season")
End With
tvSeasons.Nodes.Add(varTVItem)
Next
Thanks in advance