My Datagrid is bound to an ObservableCollection and is populated after grouping some values received by EF.
My problem is that the height of the datagrid exceeds the size of the window. Does anyone know how to fix this ... I almost guessed to death ..: o
<UserControl x:Class="UltranizerV2.Views.Storage.InventoryList" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="25"></RowDefinition> </Grid.RowDefinitions> <DockPanel Grid.Row="0" > <DataGrid ItemsSource="{Binding PresentableInventoryItems}" VerticalAlignment="Stretch" AutoGenerateColumns="False"> <DataGrid.Columns> <DataGridTextColumn Header="Produkttitel" Width="350" Binding="{ Binding ProductTitle}"/> <DataGridTextColumn Header="Sku" Width="100" Binding="{ Binding Sku}" /> <DataGridTextColumn Header="Menge" Width="60" Binding="{ Binding Quantity}" /> </DataGrid.Columns> </DataGrid> </DockPanel> <Label Grid.Row="1">Arsch</Label> </Grid> </UserControl>
c # wpf datagrid scrollbar
Erik Mandke Jun 03 '14 at 13:00 2014-06-03 13:00
source share