title: DataGridView setting Row height in code and disable manual resize
body: <p>In my grid I had following line of code which disabled user's manual resizing:</p>
  
  <pre><code>dgvTruckAvail.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
  </code></pre>
  
  <p>Now I needed to set column height in code and it didn't work (see <a href="https://stackoverflow.com/questions/8705312/datagridview-setting-row-height-doesnt-work">DataGridView setting row height doesn&#39;t work</a>)</p>
  
  <p>I figured that it was this line of code that caused non-sizing issue. However, now I need to figure out how to </p>
  
  <ol>
  <li>Size rows in code</li>
  </ol>
  
  <p>and</p>
  
  <ol start="2">
  <li>Prevent user sizing rows themselves</li>
  </ol>
  
  <p>Any pointers?</p>