J
J Jones
How can I do it?
J Jones said:Thanks for the reply Miha. I am creating the new dataset and tranfering the
data. My code to do that is below and I am getting 'There is no Row at
position 0' when I run it. As you can tell from my code, I am new to all of
this. can you tell me where Im going wrong?
Dim ds As New DataSet
Dim reader As New System.IO.StringReader(sXML)
Dim dt As DataTable = New DataTable
Dim i As DataRow
Dim x As Integer
ds.ReadXml(reader)
ds.Tables.Add(dt)
For Each i In ds.Tables.Item("Result").Rows
dt.Columns.Add()
Next
For x = 0 To 9
dt.Columns.Item(x).ColumnName() =
Str(ds.Tables.Item(0).Rows.Item(x).Item(0))
Next x
dt.NewRow()
For x = 0 To 9
dt.Rows.Item(0).Item(x) =
ds.Tables.Item(0).Rows.Item(x).Item(1)
Next