Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Reading multiple XML files into Ultragrid and saving changes back to xml files

I'm writing an application that will read up to 150-200 XML files into an ultragrid. I want to be able to edit the data in the grid and then write the changes back to each XML. Each XML file has the same schema. Each XML has anywhere from 50-300 nodes that represent each row read into the grid.

I'm looking for the best way to do this. I'm currently using Linq to read all the XML into a datatable and then putting that into the grid. Now I just need to be able to save changes made in the grid back to the XML.

Each node I'm reading into the grid does have a key field that is read into the grid, that key is unique in the file but will be duplicated in all the other XML. The best idea I have had so far is to identify the filename and the row being edited and then use something like WriteXML to write back to the file and node.

Would this be the best way or is there another way that might work better?