C# how to hide columns in datagridview 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;
this.dataGridView1.Columns["ID"].Visible = false;
this.dataGridView1.Columns["CustomerID"].Visible = false;