I have an XML file with a parameter names, and its related descriptions. What is the best way for me to show these in a datagridview. with two columns, parameter and parameter description
You should be able to read your xml file directly into a DataSet and then set the DataSource of a DataGridView to the index of the Table in the DataSet that represents the data you want to show. See Here:-
VB.NET:
Dim DS As New DataSet
DS.ReadXml("c:\YourPath\YourXMLFile.xml")
DataGridView1.DataSource = DS.Tables("YourTableIndex")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.