private void cmdShow_Click(object sender, EventArgs e) { localhost.Service1 myserver = new localhost.Service1(); BindingSource bs = new BindingSource(); bs.DataSource = myserver.show(); gv1.DataSource = bs; gv1.Columns[3].Visible = false; // gv1.Columns[2].Visible = false; gv1.Columns[4].Visible = false; }