ASP.net GridView column out of index
Posted on 2011-10-19
In ASP.net I am using the following code to make my last column invisible
GridView2.Columns(7).Visible = False
but am getting an error that it is out of range
The GridView has five template columns and binds to a table with three columns.
(As a test to see what GridView2.Columns(2).Visible = False does - it deletes the third