asked on
******** Direct Version******
GridView1.DataSource = _
From manuf In partlist.Descendants("product") _
Select ManName = _
manuf.Element("manufacturer").Value, _
Desc = manuf.Element("descriptionLine1").Value, _
MfgPart = manuf.Element("partNumber").Value, _
qty = manuf.Element("quantity").Value, _
cost = manuf.Element("cost").Value, _
LineNum = manuf.@lineItemNumber, _
Note = manuf.Element("note").Value, _
price = manuf.Element("price").Value()
GridView1.DataBind()
******Other Method****
Dim PartlistQRY = _
From manuf In partlist.Descendants("product") _
Select ManName = _
manuf.Element("manufacturer").Value, _
Desc = manuf.Element("descriptionLine1").Value, _
MfgPart = manuf.Element("partNumber").Value, _
qty = manuf.Element("quantity").Value, _
cost = manuf.Element("cost").Value, _
LineNum = manuf.@lineItemNumber, _
Note = manuf.Element("note").Value, _
price = manuf.Element("price").Value()
GridView1.DataSource = PartlistQRY
GridView1.DataBind()