G
Guest
I have created an XML file, generated the schema, and added a typed DataSet
(MySet1) to my project.
I have tried adding the new row to the XML file using the following methods:
Dim row As MySet.DetailsRow = MySet1.Details.NewDetailsRow()
'all fields have been set, such as:
row.FirstName = txtFirstName.text
MySet1.Details.Rows.Add(row)
'I also tried
MySet1.Details.AddDetailsRow(row)
The first method did not add a new row, and the second attempt managed to
overwrite the original row in the XML file.
I managed this fine using C#, but it doesn't translate over to VB .NET very
well (an extra parameter is expected in C# for the second attempt).
Any help would be much appreciated.
(MySet1) to my project.
I have tried adding the new row to the XML file using the following methods:
Dim row As MySet.DetailsRow = MySet1.Details.NewDetailsRow()
'all fields have been set, such as:
row.FirstName = txtFirstName.text
MySet1.Details.Rows.Add(row)
'I also tried
MySet1.Details.AddDetailsRow(row)
The first method did not add a new row, and the second attempt managed to
overwrite the original row in the XML file.
I managed this fine using C#, but it doesn't translate over to VB .NET very
well (an extra parameter is expected in C# for the second attempt).
Any help would be much appreciated.