Re: Datagridview to XML file
The first question is how does the data get into the grid view? Is this a Windows or ASP.NET grid? I'm sure you can find samples of databinding with Grid Views. What I would say though is that its unlikely you'll find anything out of the box that will write to an xml file. You could bind to a dataset and then you the 'WriteXml' to output to Xml.
Re: Datagridview to XML file
I'm using C# for a windows form so windows, and the user have to put in the data by hand and i want that data to be stored in XML.
indeed i have to use databindings but couldn't find any code to bind a new grid to a dataset and process that into XML. all the code i found was the other way around. read from xml to dataset and write it back. but the writing back is done with some code used for filling the grid.