Friday, June 5, 2009

Databind XML to Gridview

string location = @"somefilename";

System.Data.DataSet oDS = new System.Data.DataSet();

oDS.ReadXml(location);

gvIcons.DataSource = oDS;

gvIcons.DataBind();

No comments: