title: fit dataGridView size to row's and columns's total size
body: <p>I want to make a dataGridView's size to fit the columns and rows total size. About total height, I managed to fit it to columns's height like that:</p>
  
  <pre><code>const int datagridLines = 30;
  s.Height = dataGridView2.Columns[0].HeaderCell.Size.Height;
  for (byte i = 0; i &lt; datagridLines; i++)
  {
    dataGridView2.Rows.Add();
    s.Height += dataGridView2.Rows[i].Height;
  }
  dataGridView2.ClientSize = s;
  </code></pre>
  
  <p>I tried some things to also fit the width but no luck. Any suggestions?</p>
  
  <p>Thanks.</p>