title: Change the position of the scrollbar in a WPF Datagrid
body: <p>I have a layout problem with a datagrid in my C# WPF application. If the content of my datagrid can't be displayed in my datagrid because there are to many rows, a scrollviewer (and scrollbar) is displayed. This is the correct way and I'm happy about it.</p>
  
  <p>The problem is, that the position of the scrollviewer in my datagrid ist wrong. The scrollviewer starts in the header row, but the Scrollbar is displayed in the first row of my content. In the header there is a white retangle. This is because the background of my datagrid is white. But the background of my header is gray.</p>
  
  <p>I uploaded a picture with a red arrow to clarify my problem. The white retangle looks really ugly, so in my opinion it's the better way to change the position of the scrollviewer, so it starts in the first row of the content. Maybe there is another possibility to solve the problem?</p>
  
  <p>"Datagrid with Scrollviewer"-Image:</p>
  
  <p><img src="https://i.stack.imgur.com/QOJm5.jpg" alt="enter image description here"></p>
  
  <p>Thanks for any hints, which will help me to solve the problem!</p>
  
  <p>Best regards,
  Flasher</p>