0
Answer

WPF and binding data by using Entity Framework

Yagmour maima

Yagmour maima

10y
1k
1
I want to Bind data from DataBase into a DataGrid
the code in Xaml : 
 
<DataGrid AutoGenerateColumns="False" x:Name="ClientGrid" ItemsSource="{Binding Path=Client}" SelectedValue="{Binding SelectedRow}">
<DataGrid.Columns>
<DataGridTextColumn Header="CodeClient" Binding="{Binding CClient}"/>
</DataGrid.Columns>
</DataGrid>
 
After that what should I do to get Data !!Please help me