Z
zleug
Guest
Hi All.
In my form I have datagrid. How to binding datagrid column to Entity Framework table?
<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>
And would like to substitute in Edit column button by image, for instance, like pencil. But image should be works like button gives a user ability click to open detail form for edit record. Will appreciate with detail explanation.
Thanks.
Continue reading...
In my form I have datagrid. How to binding datagrid column to Entity Framework table?
<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>
And would like to substitute in Edit column button by image, for instance, like pencil. But image should be works like button gives a user ability click to open detail form for edit record. Will appreciate with detail explanation.
Thanks.
Continue reading...