title: How do I set my DataGridView control to AutoSize according to number of Rows?
body: <p>I have a <code>DataGridView</code> control, which is inside of a <code>GroupBox</code>.</p>
  
  <p><code>GroupBoxdock</code> is fill.</p>
  
  <p>I am showing some data inside <code>DataGridView</code> and want to change its size according to number of rows in the <code>DataGridView</code>.</p>
  
  <p>The number of rows are not constant.</p>
  
  <p>There is no control below this <code>DataGridView</code> .</p>