It seems like there\'s no way to manipulate the columns of a Gridview if AutoGenerateColumns = true. Here\'s my scenario:
I\'ve got a generic GridView that displays
If somebody still need answer: just use e.Row.Cells.Count from RowDataBound.