protected void DELSGridView_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e) { try { DELSDataTable = (DataTable)Session["DELStable"]; if (Session["DELSDataTable"] != null && Session["DELSDataTable"] != "") { DELSDataTable = Session["DELSDataTable"] as DataTable; } ASPxGridView gridView = (ASPxGridView)sender; //6/24/2015 NS added for VSPLUS-1838 ASPxTextBox txtKeyword = (ASPxTextBox)DELSGridView.FindEditFormTemplateControl("LogFileTextBox"); ASPxTextBox txtNotRequiredKeyword = (ASPxTextBox)DELSGridView.FindEditFormTemplateControl("NotLogFileTextBox"); ASPxCheckBox LogFileCheckBox = (ASPxCheckBox)DELSGridView.FindEditFormTemplateControl("LogFileCheckBox"); ASPxCheckBox logCheckBox = (ASPxCheckBox)DELSGridView.FindEditFormTemplateControl("logCheckBox"); ASPxCheckBox AgentlogCheckBox = (ASPxCheckBox)DELSGridView.FindEditFormTemplateControl("AgentlogCheckBox"); gridView.DoRowValidation(); UpdateData("Update", GetRow(DELSDataTable, e.NewValues.GetEnumerator(), Convert.ToInt32(e.Keys[0]))); //Update Grid after inserting new row, refresh grid as in page load gridView.CancelEdit(); e.Cancel = true; FillDELSGridfromSession(); } catch (Exception ex) { successDiv.InnerHtml = msgloc.ToString() + "Success." + "<button type=\"button\" class=\"close\" data-dismiss=\"alert\"><span aria-hidden=\"true\">×</span><span class=\"sr-only\">Close</span></button>"; successDiv.Style.Value = "display: block"; } }