private void Editbtn_Click(object sender, EventArgs e) { string x = Convert.ToString(dataGridView1.SelectedCells[0].Value); int y = Convert.ToInt32(x); AddItemForm a = new AddItemForm(y); a.ShowDialog(); }
private void Addbtn_Click(object sender, EventArgs e) { AddItemForm a = new AddItemForm(); a.ShowDialog(); }