protected void rdgrdFaturaIcerigi_RowCommand(object sender, GridViewCommandEventArgs e) { int IstId = int.Parse(Request["IstId"].ToString()); EFDal ed = new EFDal(); if (e.CommandName == "Delete") { int index = Convert.ToInt32(e.CommandArgument); int key = Convert.ToInt32(this.rdgrdFaturaIcerigi.DataKeys[index].Value); ed.FaturaOnYaziTablosundanIDyeBagliOlarakSil(key); rdgrdFaturaIcerigi.DataSource = ed.kal_FaturalandirmaAyrintilari(IstId, int.Parse(txtCihazKapsamAyrintiTabloAdi.Text)); ; rdgrdFaturaIcerigi.DataBind(); } }