c# datagridview column hide code example
Example 1: c# datagridview hide column
this.dataGridView1.Columns["ID"].Visible = false;
Example 2: hide datagrid column c#
this.dataGridView1.Columns["CustomerID"].Visible = false;
Example 3: c# datagridview hide header
dataGridView1.ColumnHeadersVisible = false;