Displaying an XML DataSet in a DataGridView - .Net Framework

Create on a form an instance of a DataGrid, a BindingSource, and your typed DataSet. Then set the following properties at design time.


Then, wherever you want to fill the DataGridView with the XML DataSet, insert the following code. You can convert code between C# and VB.NET at this website.

MyTypedDataSet ds = new MyTypedDataSet();
XmlDataDocument doc = new XmlDataDocument(ds);
doc.Load(xmlInputFileName);
uxMyBindingSource.DataSource = ds;