protected void GridView_Asignaciones_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e) { try { GridView_Asignaciones.CancelEdit(); Session["RegistrarAsignacion"] = "0"; Response.Redirect("RegistrarAsignacion.aspx", true); } catch (Exception Ex) { FG.Controlador_Error(Ex, Page.Response); } }
protected void GridView_Asignaciones_StartRowEditing(object sender, DevExpress.Web.Data.ASPxStartRowEditingEventArgs e) { try { GridView_Asignaciones.CancelEdit(); Session["RegistrarAsignacion"] = e.EditingKeyValue; Response.Redirect("RegistrarAsignacion.aspx", true); } catch (Exception Ex) { FG.Controlador_Error(Ex, Page.Response); } }