User-1327517459 posted
Hai Guys,
This is my code...
protected void Page_Load(object sender, EventArgs e)
{
//Converting XML data into DataTable first and then binding the DataTable object to GridView
DataTable dt = new DataTable();
//string a = HttpContext.Current.Server.MapPath(@"~/App_Data/AppList.xml");
dt.ReadXml(MapPath(@"~/App_Data/AppList.xml"));
GridView1.DataSource = dt;
//binding is done
GridView1.DataBind();
}
When i debug i am getting the error at the line highlighted as
DataTable does not support schema inference from Xml.
Help me in resolving the above issue