protected void AdminFormView_ModeChanging(object sender, FormViewModeEventArgs e) { AdminFormView.ChangeMode(e.NewMode); bindgrid(); if (e.NewMode == FormViewMode.Edit) { AdminFormView.AllowPaging = false; } else { AdminFormView.AllowPaging = true; } }
protected void AdminFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { AdminFormView.ChangeMode(FormViewMode.ReadOnly); }