Yagmour maima

Yagmour maima

  • NA
  • 43
  • 3.1k

WPF and binding data by using Entity Framework

Feb 8 2014 4:21 AM
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