How to collect loop through records in a dataset?

How to loop through records in a dataset

I try and get solution:

I have a one dataset and inside dataset have a some data.
I want to loop this dataset so I will insert one by one value in database.

Follow by below code:

If dataset.Tables(0).Rows.count <> 0 then
For i = 0 To dataset.Tables(0).Rows.Count - 1
'Do Something (insert)
End If

About the Author