private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { /*0 KitapID * 1 DemirbasNo * 2 KitapAdi * 3 YazarID * 4 TurID * 5 RafID * 6 YayineviID * 7 GelisSekli * 8 Aciklama * 9 GelisTar * 10 Adet * 11 Cilt * 12 ResimYolu * 13 Durum */ try { int kitapID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value); int demirbasNo = Convert.ToInt32(dataGridView1.CurrentRow.Cells[1].Value); string kitapAdi = dataGridView1.CurrentRow.Cells[2].Value.ToString(); int yazarID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[3].Value); int turID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[4].Value); int rafID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[5].Value); int yayineviID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[6].Value); string gelisSekli = dataGridView1.CurrentRow.Cells[7].Value.ToString(); string aciklama = dataGridView1.CurrentRow.Cells[8].Value.ToString(); DateTime gelisTar = Convert.ToDateTime(dataGridView1.CurrentRow.Cells[9].Value); int adet = Convert.ToInt32(dataGridView1.CurrentRow.Cells[10].Value); int cilt = Convert.ToInt32(dataGridView1.CurrentRow.Cells[11].Value); Islemler.GuncelleKitap(kitapID, demirbasNo, kitapAdi, yazarID, turID, rafID, yayineviID, gelisSekli, aciklama, adet, cilt); } catch (Exception) { } }