Ejemplo n.º 1
0
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     GridView1.EditIndex = -1;
     Class1 ob = new Class1();
     GridView1.DataSource = ob.zShowGridView(eBophan.Text, eChonngay.Text);
     GridView1.DataBind();
 }
Ejemplo n.º 2
0
 protected void PriceGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     PriceGridView.EditIndex = -1;
     string supplierId = Convert.ToString(Session["supplierId"]);
     PriceGridView.DataSource = controller.acceptSupplierPriceList(supplierId);
     PriceGridView.DataBind();
 }
Ejemplo n.º 3
0
		protected void permisosGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
		{
			permisosGridView.EditIndex = -1;
			permisosGridView.DataSource = ViewState["permisos"];
			permisosGridView.DataBind();
			BindearDropDownLists();
		}
Ejemplo n.º 4
0
        protected void ClienteGridView_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            string strCon = " server=localhost;uid=root;pwd=12345;database=fg ";

            ClienteGridView.EditIndex = -1;
            preencheGrid();
        }
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     aManager = new ManagerManager();
     GridView1.DataSource = aManager.ShowAllUser();
     GridView1.EditIndex = -1;
     GridView1.DataBind();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 取消时触发
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     this.GridView1.EditIndex = -1;
     this.lblMsg.Visible = false;
     this.lblAccMsg.Visible = false;
     this.GridBind();
 }
        protected void GridViewRowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            gvStudentRecord.EditIndex = -1;

            Clear();
            Display();
        }
Ejemplo n.º 8
0
 protected void gvDanhSachTienDo_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     e.Cancel = true;
     string mathamchieu = lblThamChieu.Text;
     gvDanhSachTienDo.EditIndex = -1;
     loadDSDeXuat(mathamchieu);
 }
Ejemplo n.º 9
0
 protected void gvAccountInfo_RowCancelingEdit(Object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     // Set the GridView back to the original state
     // No rows currently being edited
     gvAccountInfo.EditIndex = -1;
     ShowAccountInfo();
 }
Ejemplo n.º 10
0
 protected void gvRmoaAlerts_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //Setting the EditIndex property to -1 to cancel the Edit mode in Gridview
     gvRmoaAlerts.EditIndex = -1;
     gvRmoaAlerts.DataBind();
     RefreshRmoaTab();
 }
Ejemplo n.º 11
0
        protected void gvMenu_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            gvMenu.EditIndex = -1;

            //Bind data to the GridView control.
            BindGrid();
        }
 protected void gvAttributes_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     this.gvAttributes.EditIndex = -1;
     this.gvAttributes.Columns[2].Visible = false;
     ((ImageButton)this.gvAttributes.FooterRow.FindControl("imgNew")).Visible = this.application.IAmManager;
     this.bindGridView();
 }
Ejemplo n.º 13
0
 protected void gvCustomers_RowCancelingEdit(Object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     // Set the GridView back to the original state
     // No rows currently being editted
     gvCustomers.EditIndex = -1;
     populateCustomers();
 }
Ejemplo n.º 14
0
 protected void GV_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     // 设置EditIndex
     this.GV.EditIndex = -1;
     // 绑定数据
     this.RebindGridView(false);
 }
Ejemplo n.º 15
0
 protected void gridItens_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     GridViewRow r = gridItens.Rows[e.RowIndex];
     r.BackColor = Color.WhiteSmoke;
     gridItens.EditIndex = -1;
     RecarregaGrid();
 }
 protected void grDS_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     e.Cancel = true;
     grDS.EditIndex = -1;
     int ma = int.Parse(drNBH.SelectedItem.Value.ToString());
     loadDS(ma);
 }
Ejemplo n.º 17
0
 protected void gvSample_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     gvSample.EditIndex  = -1;
     gvSample.DataSource = ListShow;
     gvSample.DataBind();
     btnAdd.Enabled = true;
 }
Ejemplo n.º 18
0
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     GridView1.EditIndex = -1;
     sclist2 = (List<ShoppingItem>)Session["sclist"];
     GridView1.DataSource = sclist2;
     GridView1.DataBind();
 }
 protected void destinatariosFrecuentesGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     destinatariosFrecuentesGridView.EditIndex = -1;
     destinatariosFrecuentesGridView.DataSource = ((Entidades.DatosEmailAvisoComprobantePersona)ViewState["datosEmailAvisoComprobantePersona"]).DestinatariosFrecuentes;
     destinatariosFrecuentesGridView.DataBind();
     BindearDropDownLists();
 }
Ejemplo n.º 20
0
        protected void grDSClaim0_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            e.Cancel = true;
            grDSClaim0.EditIndex = -1;

            loadDSClaimChoThanhToan();
        }
Ejemplo n.º 21
0
        protected void GvCanceling(object sender, GridViewCancelEditEventArgs e)
        {
            gridView.EditIndex = -1;
            string selectedJob = DropDownList.SelectedValue;
            int jobId = container.JobsSet.Where(x => x.JobsName == selectedJob).FirstOrDefault().Id;

            UpdateGrid(jobId);
        }
Ejemplo n.º 22
0
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     // DataSet ds = (DataSet)ViewState["dataset"];
     GridView1.EditIndex = -1;
     // GridView1.DataSource = ds;
     // GridView1.DataBind();
     ispolni();
 }
Ejemplo n.º 23
0
        protected void membersGrid_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            membersGrid.EditIndex = -1; //swicth back to default mode

            //this.membersGrid.PageIndex = 0;

            this.rebindMembers(); // Rebind GridView to show the data in default mode
        }
Ejemplo n.º 24
0
 protected void gvwProgress_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     SPSecurity.RunWithElevatedPrivileges(delegate()
     {
         gvwProgress.EditIndex = -1;
         Bind_Data_To_Controls();
     });
 }
Ejemplo n.º 25
0
        protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            GridView1.EditIndex = -1;

            GridView1.DataSource = Helper.LoadShareDetails(Txtempid.Text);
            GridView1.DataKeyNames = new string[] { "dateremit", "amount", "salarybasis", "perofsharebasis", "remarks" };
            GridView1.DataBind();
        }
Ejemplo n.º 26
0
 void GridViewAdminProfile_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     GridViewAdminProfile.EditIndex = -1;
     DataSet ds = new DataSet();
     ds = obj.Data_inventer("select FName,LName,Phone,Address from User_Info where UserID='" + Session["id"].ToString() + "'");
     GridViewAdminProfile.DataSource = ds;
     GridViewAdminProfile.DataBind();
 }
Ejemplo n.º 27
0
        protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            string bvin = string.Empty;

            //this.GridView1.UpdateAfterCallBack = true;
            bvin = ((GridView)sender).DataKeys[e.RowIndex].Value.ToString();
            MyPage.MTApp.ContentServices.Columns.MoveBlockDown(bvin, this.ColumnId, this.MyPage.MTApp.CurrentStore.Id);
            LoadColumn();
        }
Ejemplo n.º 28
0
 protected void grTSGDVCase_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     e.Cancel = true;
     grTSGDVCase.EditIndex = -1;
     string ngay = txtDate.Text;
     int maLA = int.Parse(drGDV.SelectedItem.Value.ToString());
     string ma = txtMaClaim.Text;
     loadTSGDVCASE(ma, maLA);
 }
Ejemplo n.º 29
0
 protected void grdContact_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     try
     {
         grdContact.EditIndex = -1;
         FillGrid();
     }
     catch { }
     finally { }
 }
Ejemplo n.º 30
0
        protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            ContentBlock b    = MyPage.MTApp.ContentServices.Columns.FindBlock(this.BlockId);
            string       bvin = string.Empty;

            bvin = ((GridView)sender).DataKeys[e.RowIndex].Value.ToString();
            b.Lists.MoveItemDown(bvin, "Products");
            MyPage.MTApp.ContentServices.Columns.UpdateBlock(b);
            LoadItems(b);
        }
Ejemplo n.º 31
0
 protected void gvAmortizations_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     GridView gv = (GridView)sender;
     gvAmortizations.EditIndex = -1;
     string EmpID = ((Label)gvSearch.Rows[gv.SelectedIndex].FindControl("lblEmpIDDisp")).Text;
     //helpers.LoadSearchedMember(EmpID, Member, branch, division);
     gvTransactions.DataSource = helpers.LoadEmpTransactRecord(EmpID);
     gvTransactions.DataKeyNames = new string[] { "LOANTYPE", "PRINCIPALAMOUNT", "DATEFILED", "BALANCE", "PAID", "TRANSACTCODE" };
     gvTransactions.DataBind();
 }
Ejemplo n.º 32
0
        // GridView.RowCancelingEdit Event
        protected void gvPerson_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            // Exit edit mode.
            gvPerson.EditIndex = -1;

            // Rebind the GridView control to show data in view mode.
            BindGridView();

            // Show the Add button.
            lbtnAdd.Visible = true;
        }
Ejemplo n.º 33
0
        protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            GridView1.EditIndex = -1;
            refreshdata();

            ddlFixed = (DropDownList)GridView1.HeaderRow.FindControl("ddlSpecialitySE");
            ddlFixed.Items.FindByValue(txtSpValue.Text).Selected = true;

            ddlBrickFixed = (DropDownList)GridView1.HeaderRow.FindControl("ddlBrickSE");
            ddlBrickFixed.Items.FindByValue(txtBrickVal.Text).Selected = true;
        }
Ejemplo n.º 34
0
        protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            GridView1.EditIndex = -1;
            sql_object sql_obj = new sql_object();
            dataReader = sql_obj.get_offer_query();

            GridView1.DataSource = dataReader;
            GridView1.DataBind();
            sql_obj.close_connection();
            //string test1 = GridView1.Rows[e.RowIndex].Cells[1].Text;
            //GridView1.EditIndex = -1;
        }
Ejemplo n.º 35
0
 protected void grdCountry_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     grdCountry.EditIndex = -1;
     try
     {
         grdfill();
     }
     catch (Exception ex)
     {
         showerror(ex);
     }
 }
 /// <summary>
 /// Cancel edit infomation for task
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void gvTaskRepository_OnRowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     try
     {
         ltError.Text = string.Empty;
         gvTaskRepository.EditIndex = -1;
         BindDataTaskToGridView();
     }
     catch (Exception ex)
     {
         ltError.Text = ex.Message;
     }
 }
Ejemplo n.º 37
0
        protected void JobList_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            int jobId; int.TryParse(JobList.DataKeys[e.RowIndex].Value.ToString(), out jobId);
            Miami.Substitute.Bll.Job job = new Miami.Substitute.Bll.Job();
            Miami.Substitute.Bll.Substitute substitute = new Miami.Substitute.Bll.Substitute();
            substitute.LoadByUserId();
            job.DeleteSubstituteFromJob(jobId, substitute.SubstituteId);

            Miami.Substitute.Bll.NoticeSystem noticeSystem = new Miami.Substitute.Bll.NoticeSystem(jobId, Miami.Substitute.Bll.NoticeSystem.NoticeType.AcceptedJobCancelledBySubstitute, Micajah.Common.Security.UserContext.Current.UserId, 0);
            noticeSystem.Send();

            Response.Redirect("Default.aspx");
        }
Ejemplo n.º 38
0
 protected void itemGrid_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     itemGrid.EditIndex = -1;
     int grpCatId = Int32.Parse(ddl_catagory.SelectedValue.ToString());
     if (txt_itemname.Text == "")
     {
         getItems(grpCatId);
     }
     else
     {
         searchDT(txt_itemname.Text, grpCatId);
     }
 }
Ejemplo n.º 39
0
 protected void gvDSCongTy_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     e.Cancel = true;
     gvDSCongTy.EditIndex = -1;
     if (Session["Tim"] != null)
     {
         string tim = Session["Tim"].ToString();
         Tim(tim);
     }
     else
     {
         HienThiDanhSach();
     }
 }
Ejemplo n.º 40
0
        protected void gvUsers_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            int id;

            if (int.TryParse(Request.QueryString["id"], out id))
            {
                gvUsers.EditIndex = -1;
                BindData(id);
            }
            else
            {
                errormsg.Text = "对不起,你所访问的页面不存在";
            }
        }
Ejemplo n.º 41
0
        protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            this.msg.ClearMessage();
            string bvin = string.Empty;

            bvin = ((GridView)sender).DataKeys[e.RowIndex].Value.ToString();
            Policy p = MTApp.ContentServices.Policies.Find(this.PolicyIDField.Value);

            if (p != null)
            {
                p.MoveBlockDown(bvin);
                MTApp.ContentServices.Policies.Update(p);
            }
            LoadPolicy();
        }
Ejemplo n.º 42
0
 protected void gvEvenSettings_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     try
     {
         gvEvenSettings.EditIndex = -1;
         GetEventList(VenueID, pagesize, drdpPage.SelectedIndex, txtSearchBy.Text.Trim());
     }
     catch (Exception ex)
     {
         ErrHandler.WriteError(ex.Message);
         System.Text.StringBuilder sb = new System.Text.StringBuilder();
         sb.Append(@"<script language='javascript'>");
         sb.Append(@"alert('Error : " + ex.Message + "')");
         sb.Append(@"</script>");
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Error", sb.ToString(), false);
     }
 }
Ejemplo n.º 43
0
        protected void CategoriesGridView_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
        {
            ContentBlock b = MyPage.MTApp.ContentServices.Columns.FindBlock(this.BlockId);
            List <ContentBlockSettingListItem> settings = b.Lists.FindList("Categories");

            string bvin = string.Empty;

            bvin = ((GridView)sender).DataKeys[e.RowIndex].Value.ToString();
            foreach (ContentBlockSettingListItem item in settings)
            {
                if (item.Setting1 == bvin)
                {
                    b.Lists.MoveItemDown(item.Id, "Categories");
                }
            }
            MyPage.MTApp.ContentServices.Columns.UpdateBlock(b);
            BindCategoryGridView(b);
        }
Ejemplo n.º 44
0
 protected void grdContact_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grdContact.EditIndex = -1;
     LoadContacts();
 }
Ejemplo n.º 45
0
 protected void Grid1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
 }
Ejemplo n.º 46
0
 protected void gvDistributor_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //Setting the EditIndex property to -1 to cancel the Edit mode in Gridview
     gvDistributor.EditIndex = -1;
     FillGrid();
 }
Ejemplo n.º 47
0
 protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //Setting the EditIndex property to -1 to cancel the Edit mode in Gridview
     GridViewManageEmployee.EditIndex = -1;
     ListEmployees();
 }
Ejemplo n.º 48
0
 protected void savedSearchResultSetGrid_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     Logging.Logger.Instance.Info(String.Format("Row Editing Canceled"));
     ((SPGridView)sender).EditIndex = -1;
     BindSavedSearchResultSetGrid();
 }
Ejemplo n.º 49
0
 protected void phoneBookGrid_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     phoneBookGrid.EditIndex = -1;
     ShowData();
 }
Ejemplo n.º 50
0
 protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //Setting the EditIndex property to -1 to cancel the Edit mode in Gridview
     GridView1.EditIndex = -1;
     ShowData();
 }
Ejemplo n.º 51
0
//INSTANT C# WARNING: Strict 'Handles' conversion only applies to 'WithEvents' fields declared in the same class - the event will be wired in 'SubscribeToEvents':
//ORIGINAL LINE: Protected Sub GridView1_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GridView1.RowCancelingEdit
    protected void GridView1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
    {
        GridView1.EditIndex = -1;
        LoadData();
    }
Ejemplo n.º 52
0
 protected void gvList_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     gvList.EditIndex = -1;
     btnAdd.Visible   = true;
     BindList();
 }
Ejemplo n.º 53
0
 protected void gvJoueurList_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //gvJoueurList.EditIndex = -1;
     binding(null);
 }
Ejemplo n.º 54
0
 private void GvGoalSetting_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     gvGoalSetting.EditIndex = -1;
     bind();
 }
Ejemplo n.º 55
0
 protected void CancelEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grid.EditIndex  = -1;
     grid.DataSource = dt1;
     grid.DataBind();
 }
Ejemplo n.º 56
0
 protected void grvUserDetail_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grvCustDetail.EditIndex = -1;
     UserListBind();
 }
Ejemplo n.º 57
0
 protected void InventoryTable_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     Debug.WriteLine("InventoryTable_RowCancelingEdit");
     InventoryTable.EditIndex = -1;
     BindGrid();
 }
Ejemplo n.º 58
0
 protected void GridCedulas_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     GridCedulas.EditIndex = -1;
     ShowDataGridCedulas();
 }
 protected void grvCliente_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grvCliente.EditIndex = -1;
     LimparCampos();
     preencheGrid();
 }
Ejemplo n.º 60
0
 protected void grdPersonelListesi_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grdPersonelListesi.EditIndex = -1;
     db.kayitListesi(grdPersonelListesi);
 }