View Single Post
Old 08-15-2014, 03:16 AM
Norman Castle Norman Castle is offline
Join Date: Sep 2009
Posts: 8
Default add a row to datagridview by XML

I have a datasgridview. I can populate it from an XML file like this:

  Public ds As New DataSet
   Dim xmlFile As XmlReader
   xmlFile = XmlReader.Create("products.xml", New XmlReaderSettings())
   dg_products.DataSource = ds.Tables(0)
this is linked to the file, so that if I change the data manually, it wil be saved in the file.

Now, I perform a webrequest, and get a webresponse. It is one record in XML, the same format as the file.

I want to add the new record to the datagridview, and the linked file. What is the syntax for doing this?
Reply With Quote