I have DataTable
loaded with information in a WPF application.
I would like to get this DataTable
and load it into a DataGrid
.
How can I do this the easy way?
DataGrid
in XAML:
<Grid>
<Button Content="Pedidos
" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="91" Click="Button_Click" Height="27"/>
<DataGrid Name="dataGrid" HorizontalAlignment="Left" Margin="10,42,0,0" VerticalAlignment="Top" Height="268" Width="558"/>
</Grid>