private void btnModifier_Click(object sender, EventArgs e) { if (dataGridViewa.SelectedRows.Count > 0) { for (int i = 0; i < dataGridViewa.SelectedRows.Count; i++) { Form f = new FrmAchat ( dataGridViewa.SelectedRows[i].DataBoundItem as Achat, loadData ); f.ShowDialog(); } } }
private void butnouveau_Click(object sender, EventArgs e) { FrmAchat n = new FrmAchat(); n.Show(); }