I have given our users the option of filtering what columns appear within a griddataboundgird - I store this flag in the prefix column name within a dataset - When I first setup the grid all the columns show correctly, if I remove columns they also display correctly. When I however add a column that was previously removed, even though I set the column hidden to false on the grid the column does not display visually. The grid itself gets an empty space at the end of the grid where the column should appear but I can't see anything visually. What am I doing wrong?
GridDataBoundGrid1.AllowProportionalColumnSizing = True
GridDataBoundGrid1.DataSource = ds.Tables(0)
For Each col As DataColumn In ds.Tables(0).Columns
If col.Prefix.ToLower = "hide" Then
GridDataBoundGrid1.Model.Cols.Hidden(col.ColumnName) = True
GridDataBoundGrid1.Model.Cols.Hidden(col.ColumnName) = False