h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Hide & show a Column in Datagridview using C#.net

Hide a column in Datagridview:
dataGridView1.Columns["Column Name"].Visible = false;

Show a column in Datagridview:
dataGridView1.Columns["Column Name"].Visible = true;