locked
DataGridView - how to show hidden columns RRS feed

  • Question

  • Hi, inside a DataTable, if a DataColumn's ColumnMapping property is set to MappingType.Hidden, when this DataTable is displayed on a DataGridView (dataGridView.DataSource = myTable), that hidden column won't be shown.

    How do I tell the DataGridView to show this hidden column? I don't want to change the table because that is data and I don't want to be meddling with the data. I want to change the behavior of the DataGridView.


    • Edited by Silan Liu Tuesday, December 11, 2012 2:30 AM
    Tuesday, December 11, 2012 2:23 AM