private void DELETE_Click(object sender, EventArgs e) { foreach (DataGridViewRow item in this.dataGridView2.SelectedRows) { Int32 inx = item.Index; server.Service1 server = new server.Service1(); server.deleteorder(inx, true); showorder(); } }