Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get an xml with diffgram and schema from a datagrid
Message
De
31/10/2003 16:33:34
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00845136
Message ID:
00845232
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform