The following code snippet demonstrates different ways to bind a ADO.Net DataTable to a WPF Datagrid.
WPF Datagrid can be found at this location - http://www.codeplex.com/wpf
1. Setting the ItemsSource of the Datagrid to the DataTable's DefaultView
XAML,
Code-behind,
2. Setting the DataContext to the table and then binding ItemsSource to the DataContext
XAML,
Code-behind,