I have a DataGrid control inside a Grid control in one of my WPF windows.
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<SomeControl Grid.Row="0" />
<DataGrid Grid.Row="1" VerticalScrollBarVisibility="Visible" VerticalAlignment="Stretch"/>
The problem is that when I add rows to the DataGrid it flows out of the containing window and its scroll bar remains inactive. How do I solve this problem and make the DataGrid's scroll bar to function correctly?