protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.Params["Mode"] != null) { switch (Request.Params["Mode"]) { case "InspectionYearlyScheduleDe": MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[1]); break; case "InspectionYearlySchedule": MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[0]); break; } } } }
protected void GvYearlyInspection_SelectedIndexChanged(object sender, EventArgs e) { MvYearlySchedule.SetActiveView(MvYearlySchedule.Views[1]); FvYearlySchedule.ChangeMode(FormViewMode.Edit); }