Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Binding_to_Datagrid___Opg_2.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="48" />
- <RowDefinition Height="256*" />
- </Grid.RowDefinitions>
- <ComboBox Height="24" HorizontalAlignment="Left" Margin="12,12,12,12" Name="comboBox1" VerticalAlignment="Top" Width="120" SelectionChanged="comboBox1_SelectionChanged" />
- <DataGrid AutoGenerateColumns="False" Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch" Margin="12,0,12,12" Name="dataGrid1" VerticalAlignment="Stretch" Width="Auto">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Prduktnavn" Binding="{Binding Path=ProductName}" />
- <DataGridTextColumn Header="Leverandør ID" Binding="{Binding Path=SupplierID}" />
- <DataGridTextColumn Header="Stk. pr enhed" Binding="{Binding Path=QuantityPerUnit}" />
- <DataGridTextColumn Header="Stk. Pris" Binding="{Binding Path=UnitPrice}" />
- <DataGridTextColumn Header="Stk. på lager" Binding="{Binding Path=UnitsInStock}" />
- <DataGridTextColumn Header="Stk. i ordre" Binding="{Binding Path=UnitsOnOrder}" />
- <DataGridTextColumn Header="Genbestillings Niveau" Binding="{Binding Path=ReorderLevel}" />
- <DataGridCheckBoxColumn Header="Afbrydes" Binding="{Binding Path=Discontinued}" />
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement