datagridview hide a column but still access code example Example: c# datagridview hide column this.dataGridView1.Columns["ID"].Visible = false;