protected void DuyurularSliderGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) { ASPxGridView grid = (ASPxGridView)sender; ASPxCheckBox checkBox = ((ASPxGridView)sender).FindEditFormLayoutItemTemplateControl("ASPxGridViewTemplateReplacement6") as ASPxCheckBox; string SlideAdi = e.NewValues["SlideAdi"].ToString(); string SiraNo = e.NewValues["SiraNo"].ToString(); db.I_DuyurularSlider(Session["resimadi"].ToString(), Convert.ToInt32(SiraNo), checkBox.Checked, SlideAdi); Session["resimadi"] = ""; e.Cancel = true; grid.CancelEdit(); GridUpdating(); }