Z
zleug
Guest
Hi All.
I have form with datagrid. How to binding columns of datagrid to EF table. That is code of datagrid:
<DataGrid Name="F_Employee_DG" ToolTip="View and edit employees">
<DataGrid.Columns>
<DataGridTextColumn Header="First Name" Width="150" SortMemberPath="FirstName" IsReadOnly="True"/>
<DataGridTextColumn Header="Last Name" Width="150" SortMemberPath="LastName" IsReadOnly="True"/>
<DataGridTextColumn Header="Email Address" Width="150" SortMemberPath="EmailAddress" IsReadOnly="True"/>
<DataGridTemplateColumn Header="Edit">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Name="btnEdit" Content="Edit" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
Will appreciate for detail explanation. Thanks.
Continue reading...
I have form with datagrid. How to binding columns of datagrid to EF table. That is code of datagrid:
<DataGrid Name="F_Employee_DG" ToolTip="View and edit employees">
<DataGrid.Columns>
<DataGridTextColumn Header="First Name" Width="150" SortMemberPath="FirstName" IsReadOnly="True"/>
<DataGridTextColumn Header="Last Name" Width="150" SortMemberPath="LastName" IsReadOnly="True"/>
<DataGridTextColumn Header="Email Address" Width="150" SortMemberPath="EmailAddress" IsReadOnly="True"/>
<DataGridTemplateColumn Header="Edit">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Name="btnEdit" Content="Edit" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
Will appreciate for detail explanation. Thanks.
Continue reading...