protected void gv_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) { BootstrapGridView gv = (BootstrapGridView)sender; MasterDataModel.MasterDataSPSH item = GetGvValue(gv); string res = MasterDataEntity.AddMasterDataSPSH(item); gv.JSProperties["cpRes"] = res; e.Cancel = true; if (res.Contains("Success")) { gv.CancelEdit(); gv.DataBind(); } }