Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a cursor
Message
De
03/01/2005 01:17:17
 
 
À
03/01/2005 00:58:24
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00973741
Message ID:
00973745
Vues:
11
Michel,

I would turn the XML into a DataSet and bind the DataGrid to the DataTable in the DataSet. Use the DataSet.ReadXML() method to do this.
// If your XML is already in a string:
StringReader sr = new StringReader(XML);
Data.ReadXml(sr, XmlReadMode.InferSchema);
Data.AcceptChanges();

// - or -

// If you need to get the XML from a file
this.ReadXml("MyXML.xml", XmlReadMode.InferSchema);
~~Bonnie


>I need to create a cursor and use that into a datagrid. This is data I collect from an XML transaction that I need to turn into data that can be used in a datagrid. Is it possible to have a datagrid bound to a table which does not exist on disk?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform