title: Vertical scrollbar on multiple grids
body: <p>I've three Windows Datagrids placed one below another on my XAML screen.Each of these grids have different column and rows(6 rows,5 rows and 4 rows respectively). I need to be able to show these grid contents in such a way so that no vertical scrollbar appears on any of these three grids.</p>
  
  <p>If I don't put ScrollViewer.VerticalScrollBarVisibility="Visible" on the first grid,row number 6 becomes outside of the visibility area.</p>
  
  <p>What am I missing here please?</p>
  
  <pre><code> &lt;ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="False"&gt;
          &lt;Grid&gt;
  
  
   &lt;DataGrid Name="Grid1" Grid.Row="1" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="true"   
                                ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" Margin="0,7,0,20" ColumnWidth="*"  ScrollViewer.VerticalScrollBarVisibility="Visible"&gt;
  
  
   &lt;DataGrid Name="Grid2" Grid.Row="2" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="true" 
                                ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" Margin="0,5,0,22" 
                             ScrollViewer.CanContentScroll="True" 
        ScrollViewer.HorizontalScrollBarVisibility="Visible"&gt;
  
  
  
  &lt;DataGrid Name="Grid3" Grid.Row="3" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="true" 
                                ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" Margin="0,5,0,22" 
                             ScrollViewer.CanContentScroll="True"       
        ScrollViewer.HorizontalScrollBarVisibility="Visible"&gt;
  
  &lt;/ScrollViewer&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Thanks.</p>