Return to Snippet

Revision: 16800
at August 16, 2009 18:45 by rengber


Initial Code
DataSet ds = new DataSet();
string xml = GetSomeXMLFromWherever();

ds.ReadXml(new StringReader(xml), XmlReadMode.InferSchema);
GridView1.DataSource = ds;
GridView1.DataBind();

Initial URL

                                

Initial Description
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:

Initial Title
DataBinding an Arbitrary XML String to an ASP.Net GridViev

Initial Tags
data, xml, c, aspnet

Initial Language
C#