Gridview redisplays hidden columns afer postback
Posted on 2016-09-23
I am using a .net gridview in a web form that has some columns hidden
The gridview has AutoGeneratColumns=false. Everything displays fine. The cells are made invisible on the RowDataBound event. When I save a record to the database in a table not in the gridview the grid redraws and my columns that were invisible are suddenly visible.
I can not find an event that is firing that would do that, I have set all the ONROWxxx Events on and put a debug statement at each one but do not see which is firing so that I can re-invisble the columns.