set datagridview colum to visible c# code example Example: hide datagrid column c# this.dataGridView1.Columns["CustomerID"].Visible = false;