protected void odsOfficeMaster_Updated(object sender, ObjectDataSourceStatusEventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[0]); GvOfficeMaster.DataBind(); if (e.Exception == null) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void BtnAddNew_Click(object sender, EventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]); FvOfficeMaster.ChangeMode(FormViewMode.Insert); FvOfficeMaster.DataBind(); }
protected void btnCancel_Click1(object sender, EventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[0]); }
protected void GvOfficeMaster_SelectedIndexChanged(object sender, EventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]); FvOfficeMaster.ChangeMode(FormViewMode.Edit); }