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();
 }
Example #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();
 }
Example #3
0
		protected void permisosGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
		{
			permisosGridView.EditIndex = -1;
			permisosGridView.DataSource = ViewState["permisos"];
			permisosGridView.DataBind();
			BindearDropDownLists();
		}
Example #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();
 }
Example #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();
        }
 protected void gvDanhSachTienDo_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     e.Cancel = true;
     string mathamchieu = lblThamChieu.Text;
     gvDanhSachTienDo.EditIndex = -1;
     loadDSDeXuat(mathamchieu);
 }
Example #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();
 }
Example #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();
 }
        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();
 }
Example #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();
 }
Example #14
0
 protected void GV_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     // 设置EditIndex
     this.GV.EditIndex = -1;
     // 绑定数据
     this.RebindGridView(false);
 }
 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);
 }
Example #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;
 }
Example #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();
 }
        protected void grDSClaim0_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {
            e.Cancel = true;
            grDSClaim0.EditIndex = -1;

            loadDSClaimChoThanhToan();
        }
Example #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);
        }
Example #22
0
 protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     // DataSet ds = (DataSet)ViewState["dataset"];
     GridView1.EditIndex = -1;
     // GridView1.DataSource = ds;
     // GridView1.DataBind();
     ispolni();
 }
        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
        }
Example #24
0
 protected void gvwProgress_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     SPSecurity.RunWithElevatedPrivileges(delegate()
     {
         gvwProgress.EditIndex = -1;
         Bind_Data_To_Controls();
     });
 }
Example #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();
        }
 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();
 }
Example #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();
        }
 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);
 }
 protected void grdContact_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     try
     {
         grdContact.EditIndex = -1;
         FillGrid();
     }
     catch { }
     finally { }
 }
Example #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);
        }
Example #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();
 }
Example #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;
        }
        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;
        }
        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;
        }
Example #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;
     }
 }
Example #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");
        }
 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);
     }
 }
 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();
     }
 }
Example #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 = "对不起,你所访问的页面不存在";
            }
        }
Example #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();
        }
Example #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);
     }
 }
Example #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);
        }
Example #44
0
 protected void grdContact_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grdContact.EditIndex = -1;
     LoadContacts();
 }
Example #45
0
 protected void Grid1_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
 }
 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();
 }
Example #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();
 }
Example #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();
 }
Example #49
0
 protected void phoneBookGrid_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     phoneBookGrid.EditIndex = -1;
     ShowData();
 }
 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();
 }
Example #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();
    }
Example #52
0
 protected void gvList_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     gvList.EditIndex = -1;
     btnAdd.Visible   = true;
     BindList();
 }
 protected void gvJoueurList_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     //gvJoueurList.EditIndex = -1;
     binding(null);
 }
Example #54
0
 private void GvGoalSetting_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     gvGoalSetting.EditIndex = -1;
     bind();
 }
Example #55
0
 protected void CancelEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grid.EditIndex  = -1;
     grid.DataSource = dt1;
     grid.DataBind();
 }
Example #56
0
 protected void grvUserDetail_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grvCustDetail.EditIndex = -1;
     UserListBind();
 }
Example #57
0
 protected void InventoryTable_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     Debug.WriteLine("InventoryTable_RowCancelingEdit");
     InventoryTable.EditIndex = -1;
     BindGrid();
 }
Example #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();
 }
Example #60
0
 protected void grdPersonelListesi_RowCancelingEdit(object sender, System.Web.UI.WebControls.GridViewCancelEditEventArgs e)
 {
     grdPersonelListesi.EditIndex = -1;
     db.kayitListesi(grdPersonelListesi);
 }