I'm using the GridView. I want to make a column invisible. It is bound to a DataTable. I have encountered a number of issue in trying to accomplish this.
The ColumnName of the column in the DataTable is used as the column header text. If I set this to nothing, I get default text in the Column Header of "Column1". Because I can't set the ColumnName of the column to nothing, this prevent the column form being invisible even if I set the invisible property to false and width to 0. Bottom line, I can't get this column to totally disappear. Is there a trick? The invisible column is an a key value for the data in the row. Is there a way to associate a key value with the row, without using a distinct column?
Also, one of my columns is a check box. I get the check box in theGridView by using a column in the DataTable with DataType = System.Type.GetType("System.Boolean"). However, the check box column is disabled. How can I make it enabled?