Xml help please
-
I am new to VB and am trying to learn xml. I have two forms i am working with.the second form has a datagrid(DataGridView from toolbox) on it. I have used System.IO.FileStream to create a file in c:\. But how do I get form 2's grid or table to automatically save changes made by the user to the file in C:\ and then load them when the application is opened again? what type of xml do I use document, textreader, etc... THANKS
-
I am new to VB and am trying to learn xml. I have two forms i am working with.the second form has a datagrid(DataGridView from toolbox) on it. I have used System.IO.FileStream to create a file in c:\. But how do I get form 2's grid or table to automatically save changes made by the user to the file in C:\ and then load them when the application is opened again? what type of xml do I use document, textreader, etc... THANKS
If your using a DataGrid, your grid should be sourced (DataSource property) to a DataSet object that contains the actual data your changing. When the changes are complete, you can have the DataSet object write the data out to an XML file. Checkout the docs on the DataSet class here[^] on MSDN. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome