Help with passing data from string variable to a table to view data in DataGridView
Posted on 2013-12-18
I'm using the code below, to pass data match my query "BEL" to result, how to add the values to a table? I need to use the table as a datasource of my datagrid control to view all result found.
The location of the XML file to be parsed
Dim xdoc = XDocument.Load("C:\Working Directory\test.xml")
Dim findStr As String = "BEL"
' Locate all the Donor nodes and see if it has the value we are looking for.
Dim result = (From d In xdoc.Descendants("Donor")
' Output the results in the List
For Each s As String In result
Console.WriteLine( s )