I am using
e.Row.Cells[0].Visible = false;
to make a single column invisible. It works but when I try to add another like so:
e.Row.Cells[0].Visible = false;
e.Row.Cells[1].Visible = false; //i tried listing all and still got the out of range error
I get the error Specified argument was out of the range of valid values.
Parameter name: index
I am using the commands in the Gridview's RowDataBound
Event and starting from 0 the gridview has 12 columns