Binding WPF DataGrid to DataTable using TemplateColumns
Edit: Updated to reflect the input of Aran Mulholland (see comment) Apparently the DataGrid is passing the entire DataRowView to each cell. That’s why the binding doesn’t work. Your DataTemplate expects the DataContext to be of type MyData, but instead it is of type DataRowView. My proposed (somewhat hack-ish) workaround to get the DataContext you … Read more