Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get an xml with diffgram and schema from a datagrid
Message
From
31/10/2003 16:33:34
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00845136
Message ID:
00845232
Views:
14
Pablo,

>I've tried with WriteXml() but I can't make it work property, can you tell me a code example?<

Well, what problem are you having making it work? This should do the trick (this is untested code):
// Assume MyDataSet contains the Table that your Grid is bound to
// Also, I'm assuming that you want this in a string, rather than a File
StringWriter sw = new StringWriter();
MyDataSet.WriteXML(sw, XmlWriteMode.DiffGram);
string MyDiffGram = sw.ToString();
HTH,
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform