Answer the question
In order to leave comments, you need to log in
How to write read data in xml from dataGridView?
Application startup events
ds = new DataSet();
dt = new DataTable();
ds.Tables.Add(dt);
dataGridView1.DataSource = ds.Tables[0];
ds.WriteXml("1.xml");
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Table1 />
<Table1 />
<Table1 />
</NewDataSet>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question