I want to export the datagridview into XML,
Is any open source for it.
Printable View
I want to export the datagridview into XML,
Is any open source for it.
How are you populating the grid? If it's bound to a DataTable then you can use its WriteXml method. Otherwise you would write it the way you would any other XML: with an XmlWriter. You should read up about that class for a start. You can then loop through the rows of the grid and write an element for each row.
Yes i cant able to use the writeXml method..
Am looping through Rows and columns it taking much more time.. :(
@ John., "You should read up about that class for a start." What does this mean?
It means you should go to the MSDN Library and read the documentation for the XmlWriter class. If you feel you need more information after that I'd suggest searching the Web for tutorials and examples of its use.Quote:
Originally Posted by vijy