How do I make a column invisible in a gridview?

Posted by Joby Kurian on Stack Overflow See other posts from Stack Overflow or by Joby Kurian
Published on 2010-03-23T05:02:21Z Indexed on 2010/03/23 5:21 UTC
Read the original article Hit count: 464

Filed under:
|

How do I make a column invisible in a gridview? I tried to use this:

dataGridView.Columns(0).Visible = False

But its getting an error "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index". How can I do this?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about ASP.NET