title: .net - vb.net Horizontal Scroll Bar on DataGridView
body: <p>I have a DataGridView on a Windows Form that can have up to 25 columns and up to many thousands of rows. There are no defined columns in the DGV, these are dynamically generated in the code.  No columns are frozen.  The DGV works as expected in the version I inherited.  Then I got my hands on it…</p>
  
  <p>I am adding a toolbar to the form.  The issue I am facing is that when I lower the top of the DGV to fit just below the toolbar and ensure the DGV fits on the form, I lose my horizontal scroll bar.  I can scroll the thumb off the form, so it is no longer visible.  My Document Count field shows as expected in the image below.</p>
  
  <p><a href="http://i.stack.imgur.com/7ZIyU.png" rel="nofollow">DGV no horizontal bar and thumb scrolled off form</a></p>
  
  <p>Some potentially related field values from DGV Properties:</p>
  
  <ul>
  <li>AutoSizeColumnsMode = None</li>
  <li>AutoSizeRowsMode = None</li>
  <li>Dock = None</li>
  <li>ScrollBars = Both</li>
  </ul>
  
  <p>Any input would be much appreciated.</p>
  
  <p>Added a Screen Shot to help clarify the issue.</p>
  
  <p><a href="http://i.stack.imgur.com/xqgVy.png" rel="nofollow">Design View of the form</a></p>