I filled my DataGridView (dgv01) with xml nodes, like that:
foreach (XmlNode node1 in node.ChildNodes)
{
if (node1.Name == "abc")
{
dgv01.Rows.Add(node1.InnerText, node1.ChildNodes[0].InnerText, node1.ChildNodes[1].InnerText);
Then I made some changes on dgv - add-delete rows, change content etc.
Is there a way to update or completely rewrite my xml file according to changes in dgv.
Thanks in advance.

Jignesh TrivediPosted May 17, 2012, 3:19 AM
do same there are may way.
1) Load you XML file in dataset and bind this dataset to grid view. after changes are done than rewrite dataset to xml.
Please refer ....
http://www.java2s.com/Code/CSharp/XML/SavedatainDataGridintoXMLfile.htm
2) from above code (provided by you) you can bind datagrid now after change you can use reverse loop.
ie..
for(var i=1;i<=dgv01.rows.count;i++)
{
//access your row..
}
hope this help.
MementoPosted May 17, 2012, 11:25 AM
Thanks a lot, especially for link.