private void btnDelete_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant); } loadData(); } }
private void bunifuThinButton24_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { if (MessageBox.Show("Confirmation ? ", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant); } loadData(); } } }
private void button2_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { if ( MessageBox.Show ( "Voulez-vous vraiment supprimer cet etudiant ?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question ) == DialogResult.Yes ) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { EtudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant); } loadData(); } } }
private void btnSupprimer_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count > 0) { if ( MessageBox.Show ( "Do you really want to delete this product(s)?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question ) == DialogResult.Yes ) { for (int i = 0; i < dataGridView1.SelectedRows.Count; i++) { etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant); } loadData(); } } }