Good day,
I have a WPF DataGrid showing the content of a large DataTable. This table is much larger than the screen so the user interacting with this table needs scrollbars to be able to see all columns and rows. As you can see the picture 1 the vertical scrollbar is visible but disabled while the horizontal scrollbar is not visible at all.
How can I make the scrollbars work?
The DataGrid is filled via data binding to a DataTable after some user interaction:
this.topPhrases.DataContext = loadedValues.DefaultView;
where topPhrases is a DataGrind and laodedValues a DataTable
This is the xaml code of the DataGrid:
<DataGrid Name="topPhrases" Grid.Row="1" Margin="10,0" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" ItemsSource="{Binding}">
</DataGrid>
The hierarchy of the GUI elements are: Window->Grid->WrapPanel->ContentControl->Grid->DataGrid
I tried many things I found in the internet like: how can I enable scrollbars on the WPF Datagrid? but no suggestions worked so far.