private void btnAddItem_Click(object sender, EventArgs e) { IService service = new ServiceClient(); int id = Int32.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()); Item = service.GetItemFromID(id); this.Close(); }