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