Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Add node under a spacific node, VB.net treeview

Avatar of taz8020
taz8020Flag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingVisual Basic.NETMicrosoft Development
3 Comments1 Solution766 ViewsLast Modified:
Hi I want to be able to add a node, under a spacific node. may be by path or index?

I have a table in a typed dataset in a win app, and need to loop through each row. I have an ID field and a ParentID field. I want it to be able to have infanate child nodes. So the only way I can see of doing this is when adding a node look to see if there are child nodes then add them. |Just not sure how to go about doing this.

This is what I have so far:

For i = 0 To Me.DataSet.sections.Rows.Count - 1
If Me.ActinicDataSet.Catalog_section.Rows(i).Item("ParentID") = 0 Then
'Need to add child nodes here.
End If
Avatar of Dennis Aries
Dennis AriesFlag of Netherlands imageCEO @ Arkro IT

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers