protected void BtnAddNew_Click(object sender, EventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]); FvOfficeMaster.ChangeMode(FormViewMode.Insert); FvOfficeMaster.DataBind(); }
protected void GvOfficeMaster_SelectedIndexChanged(object sender, EventArgs e) { MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]); FvOfficeMaster.ChangeMode(FormViewMode.Edit); }