How to bind a DataGrid to a DataTable in C# code behind? (All controls are generated in run-time, so no XAML please)
I tried Binding(), set the DataContext, set the
Try binding to one of the Tables in your dataset:
datagrid.ItemsSource = dataset.Tables[0].DefaultView;
Also, to keep a good abstraction layer between your data and its representation on your forms, I would suggest you to set the property AutoGenerateColumns of your DataGridView to false and add just the columns you want displayed by hand, with the header name of your choice (in this case, do not forget to set the columns' DataPropertyName property).