private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { addedit form = new addedit(2, Convert.ToInt32(dgv.CurrentRow.Cells[0].Value)); form.Show(); }
private void add_btn_Click(object sender, EventArgs e) { addedit form = new addedit(1, 1); form.Show(); }