private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1 || e.ColumnIndex == -1)
            {
                MessageBox.Show("Lütfen veri içeriği bulunana hücreleri seçiniz. Kolon ismi seçmeyiniz.");
                return;
            }
            id = (int)dataGridView1.Rows[e.RowIndex].Cells["CategoryID"].Value;
            Category bulunanKat = katRep.Bul(id);

            txtKatAdi.Text   = bulunanKat.CategoryName;
            txtAciklama.Text = bulunanKat.Description;
        }
Example #2
0
 public ActionResult Sil(int id)
 {
     return(View(repo.Bul(id)));
 }