Hello,
I found several examples on how to write to dataset, but most of them involve a ds.fill(..) from a data connection and I need a simpler solution. Basically I want to create an xml file from the values entered in a few textbox. I tried different methods but can't make it work. What is the best way to accomplish this?
One method I used was to fill the textboxes from an xml, but now how do I write it back to the xml once the user has changed the data in the textbox?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim ds As New DataSet
ds.ReadXml("c:\sales.xml")
CashTextBox.DataBindings.Add("Text", ds.Tables(0), "Cash")
CheckTextBox.DataBindings.Add("Text", ds.Tables(0), "Check")
VisaTextBox.DataBindings.Add("Text", ds.Tables(0), "Visa")
MasterCardTextBox.DataBindings.Add("Text", ds.Tables(0), "Mastercard")
AMEXTextBox.DataBindings.Add("Text", ds.Tables(0), "AMEX")
NovusTextBox.DataBindings.Add("Text", ds.Tables(0), "Novus")
TottransTextBox.DataBindings.Add("Text", ds.Tables(0), "Tottrans") End Sub
Thank you!