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;