Exemplo n.º 1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 3)
     {
         yonetim.YurtGuncelle(dataGridView1.CurrentRow.Cells[0].Value.ToString(), dataGridView1.CurrentRow.Cells[1].Value.ToString(), dataGridView1.CurrentRow.Cells[2].Value.ToString());
         MessageBox.Show("Düzenleme Başarılı");
     }
     else if (e.ColumnIndex == 4)
     {
         yonetim.YurtSil(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         MessageBox.Show("Silme Başarılı");
     }
 }