title: Not able to hide first column in datagridview?
body: <p>I have a <code>datagridview</code> in a windows form which contains some columns. And I want to hide the Ist column(<em>CompanyID</em>) through the code behind.</p>
  
  <p>But Ist column is not hiding.</p>
  
  <p>Have tried below 2 things :</p>
  
  <pre><code>dgvVendorDetails.Columns["CompanyID"].Visible = false;
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>dgvVendorDetails.Columns[0].Visible = false;
  </code></pre>
  
  <p>I don't know the reason behind this. I have searched a lot but got no solution.</p>