private void ouvrirToolStripMenuItem_Click(object sender, EventArgs e) { String idSupplier = dGVConsumer.CurrentRow.Cells[0].Value.ToString(); int id = int.Parse(idSupplier); UpdateConsumerForm uCF = new UpdateConsumerForm(id); uCF.Show(); }
private void ouvrirToolStripMenuItem_Click(object sender, EventArgs e) { String idSupplier = dGVConsumer.CurrentRow.Cells[0].Value.ToString(); int id = int.Parse(idSupplier); //MessageBox.Show(idSupplier); UpdateConsumerForm uCF = new UpdateConsumerForm(id); uCF.Show(); //textbox1.Text = dataGridViewP.CurrentRow.Cells[0].Value.ToString(); //textbox2.Text = dataGridViewP.CurrentRow.Cells[1].Value.ToString(); }