Help with making column in GridView invisible
Posted on 2011-09-23
When I use the code below to set column(1) of my GridView to invisible, I receive the following error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Dim ds As New DataSet
GridView1.DataSource = ds.Tables(0)
GridView1.Columns(1).Visible = False
How do I fix this problem?