Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a cursor
Message
From
03/01/2005 01:17:17
 
 
To
03/01/2005 00:58:24
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00973741
Message ID:
00973745
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform