Dim dataSet = New DataSet dataSet.ReadXml("C:\Users\Shafiul Alam\Desktop\TEST FILE\TEST FILE\Testing XML Files_V19.Sep\PXSH-QQUBWC_WMB_GMC_11.xml") DataGridView1.DataSource = dataSet.Tables(0)
//Yes you can pls see the following c# code I am not that much aware of VB //use dataSet and assign load xml file to dataset from there you can bind to your gv as //you did in your QUS that can work.. /// <summary> /// Bind xml data to datalist /// </summary> private void BindDatalist() { XmlTextReader xmlreader = new XmlTextReader(Server.MapPath("Sample.xml")); DataSet ds = new DataSet(); ds.ReadXml(xmlreader); xmlreader.Close(); if (ds.Tables.Count != 0) { dlComments.DataSource = ds; dlComments.DataBind(); } else { dlComments.DataSource = null; dlComments.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)