How to bind a table in a dataset to a WPF datagrid in C# and XAML
- by Jim Thomas
I have been searching to hours for something very simple: bind a WPF datagrid to a datatable in order to see the columns at design-time. I can’t get any of the examples to work for me.
Here is the C# code to populate the datatable InfoWork inside the dataset info:
info = new Info();
InfoTableAdapters.InfoWorkTableAdapter adapter = new…