title: How do I make a column invisible in a gridview?
body: <p>How do I make a column invisible in a gridview? I tried to use this:</p>
  
  <pre><code>dataGridView.Columns(0).Visible = False
  </code></pre>
  
  <p>But its getting an error <code>"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"</code>. How can I do this?</p>