コード例 #1
0
 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;
     }
 }
コード例 #2
0
 protected void AdminFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     AdminFormView.ChangeMode(FormViewMode.ReadOnly);
 }