Posted on: 3/29/2011 11:56:08 AM | Views : 259

I have a GridView that is successfully populated by an IList. IThere are about 2 dozen columns I only need 8. I am trying to call:
 
this.grdView.Columns[0].Visible = false;
 
But I get an index out of range error. And when I call, this.grdView.Columns.Count I get 0.
I have tried this on several events including: grdView_RowDataBound
 
I am not sure what is going on here but any help is appreciated.
 
 
...

Go to the complete details ...