protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) { string DokumanAdi = e.NewValues["DokumanAdi"].ToString(); string tipid = e.NewValues["DokumanTipi_TipID5"].ToString(); ASPxCheckBox checkBox = EmployeesGrid.FindEditFormTemplateControl("ASPxGridViewTemplateReplacement6") as ASPxCheckBox; //ASPxCheckBox checkBox = ((ASPxGridView)sender).FindEditFormLayoutItemTemplateControl("ASPxGridViewTemplateReplacement6") as ASPxCheckBox; db.I_Dokuman(DokumanAdi, DataProvider.docAdi, Convert.ToBoolean(checkBox.Checked), Convert.ToInt32(tipid)); e.Cancel = true; EmployeesGrid.CancelEdit(); GridUpdating(); }