You can do it relatively easy if your file is an XML.
In your version of C# it would look something like this:
System.Xml.XmlReader myXMLreader =
new System.Xml.XmlTextReader(
new System.IO.StreamReader(%26lt;filename%26gt;)
);
DataSet myDataSet = new DataSet();
myDataSet.ReadXml(myXMLreader);
myGrid.DataSource = myDataSet.Tables[0];
myGrid.DataBind();
No comments:
Post a Comment