sinsabit
New member
Hi everyone, it's great to be here for the first time, here's my problem..,
I have the following code to populate a Datagridview from an XML source file:
But when the user edits a record in the Datagridview I want to update the XML source file with the changes.
Can anyone give me a clue as the VB.NET coding for that?
Regards
Paul
I have the following code to populate a Datagridview from an XML source file:
VB.NET:
Private Sub FillGrid(ByVal XMLFile As String)
' Create a new DataSet.
Dim newDataSet As New DataSet("ds1")
' Read the XML document in.
' Create new FileStream to read schema with.
Dim streamRead As New System.IO.FileStream _
(XMLFile, System.IO.FileMode.Open)
newDataSet.ReadXml(streamRead)
Me.DataGridView1.DataSource = newDataSet.Tables(0).DefaultView
streamRead.Close()
End Sub
Can anyone give me a clue as the VB.NET coding for that?
Regards
Paul