private void Button1_Click( object sender, System.EventArgs e) ... { this.DataGrid1 .Columns [2].Visible =false; }