Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   .NET Interface and Graphics (http://www.xtremevbtalk.com/-net-interface-and-graphics/)
-   -   add a row to datagridview by XML (http://www.xtremevbtalk.com/-net-interface-and-graphics/327223-add-row-datagridview-xml.html)

Norman Castle 08-15-2014 03:16 AM

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?

All times are GMT -6. The time now is 11:44 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.