Answer the question
In order to leave comments, you need to log in
How to display data from two related tables in datagrid for editing?
There are 2 tables created by a key. There is a page (page), it has a datagrid, how to display a table in it, which will include data from two tables at once, so that you can edit them, delete and add.
I display the data in the datagrid in this way
<DataGrid x:Name="DgridClava" AutoGenerateColumns="False" IsReadOnly="True" Margin="0,0,-438,0" RenderTransformOrigin="0.5,0.436">
<DataGrid.Columns>
<DataGridTextColumn Header="Модель клавиаутры" Binding="{Binding ModelClaviatura}" Width="*"></DataGridTextColumn>
<DataGridTextColumn Header="Инвентарный номер" Binding="{Binding InventarNomerClaviatura}" Width="*"></DataGridTextColumn>
<DataGridTextColumn Header="Серийный номер" Binding="{Binding IdClaviaturaReal}" Width="*"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
Answer the question
In order to leave comments, you need to log in
No, linked tables are read-only information. Output information for editing separately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question