|
-
Mar 15th, 2008, 12:46 AM
#1
Thread Starter
Fanatic Member
[2005]Datagridview to xml
I want to export the datagridview into XML,
Is any open source for it.
Visual Studio.net 2010
If this post is useful, rate it

-
Mar 15th, 2008, 10:22 PM
#2
Re: [2005]Datagridview to xml
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.
-
Mar 16th, 2008, 11:14 PM
#3
Thread Starter
Fanatic Member
Re: [2005]Datagridview to xml
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?
Visual Studio.net 2010
If this post is useful, rate it

-
Mar 16th, 2008, 11:17 PM
#4
Re: [2005]Datagridview to xml
 Originally Posted by vijy
@ 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|