当前位置: 首页>>代码示例>>C#>>正文


C# WebControls.GridViewEditEventArgs类代码示例

本文整理汇总了C#中System.Web.UI.WebControls.GridViewEditEventArgs的典型用法代码示例。如果您正苦于以下问题:C# GridViewEditEventArgs类的具体用法?C# GridViewEditEventArgs怎么用?C# GridViewEditEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


GridViewEditEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewEditEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: gvTaxUpdate_RowEditing

 protected void gvTaxUpdate_RowEditing(object sender, GridViewEditEventArgs e)
 {
     GridView gv = sender as GridView;
     GridViewRow row = gv.Rows[e.NewEditIndex];
     this.Id = row.Cells[1].Text;
     Server.Transfer("TaxUpdateEditor.aspx");
 }
开发者ID:wedofreelancecode,项目名称:taxgenieonline,代码行数:7,代码来源:EditTaxUpdate.aspx.cs

示例2: grdTodos_RowEditing

 protected void grdTodos_RowEditing(object sender, GridViewEditEventArgs e)
 {
     txtTitle.Text = grdTodos.Rows[e.NewEditIndex].Cells[1].Text;
     txtBody.Text = grdTodos.Rows[e.NewEditIndex].Cells[2].Text;
     btnSave.CommandArgument = grdTodos.DataKeys[e.NewEditIndex].Value.ToString();
     e.Cancel = true;
 }
开发者ID:niki-funky,项目名称:Telerik_Academy,代码行数:7,代码来源:Default.aspx.cs

示例3: PriceGridView_RowEditing

 protected void PriceGridView_RowEditing(object sender, GridViewEditEventArgs e)
 {
     PriceGridView.EditIndex = e.NewEditIndex;
     string supplierId = Convert.ToString(Session["supplierId"]);
     PriceGridView.DataSource = controller.acceptSupplierPriceList(supplierId);
     PriceGridView.DataBind();
 }
开发者ID:tianhang,项目名称:SA39_AD,代码行数:7,代码来源:ManageSupplier.aspx.cs

示例4: EditPhone

        protected void EditPhone(object sender, GridViewEditEventArgs e)
        {
            outputbox.Text += "Starting update sample..." + Environment.NewLine;
            
   
            // BEGIN Update Example
            DatabaseDotComContext context = (DatabaseDotComContext)Session["context"];
            DatabaseDotComClient client = new DatabaseDotComClient(context);

            outputbox.Text += "Starting update sample..." + Environment.NewLine;

            DatabaseDotComClient.DBCObject contact = new DatabaseDotComClient.DBCObject("Contact");

            HiddenField idField = (HiddenField)GridView1.Rows[e.NewEditIndex].FindControl("IdField");
            TextBox phoneText = (TextBox)GridView1.Rows[e.NewEditIndex].FindControl("newPhone");
            contact.Id = idField.Value;
            contact.SetStringField("Phone", phoneText.Text);
            outputbox.Text += "New Phone is:"+contact.GetStringField("Phone")+Environment.NewLine;
            DatabaseDotCom.DBDCReference.SaveResult sr;
            contact = client.Update(contact, out sr);
            outputbox.Text += "Update success result is: " + sr.success + Environment.NewLine + Environment.NewLine;
            System.Diagnostics.Debug.WriteLine("Row Updated");


            Query_Test();
        }
开发者ID:8mod,项目名称:Force.com-Toolkit-For-Windows-Azure,代码行数:26,代码来源:Default.aspx.cs

示例5: clientsGrid_RowEditing

 protected void clientsGrid_RowEditing(object sender, GridViewEditEventArgs e)
 {
     GridView gv = sender as GridView;
     GridViewRow row = gv.Rows[e.NewEditIndex];
     this.Id = row.Cells[1].Text;
     Server.Transfer("AddClients.aspx");
 }
开发者ID:wedofreelancecode,项目名称:taxgenieonline,代码行数:7,代码来源:EditClients.aspx.cs

示例6: gvDirecciones_RowEditing

 protected void gvDirecciones_RowEditing(object sender, GridViewEditEventArgs e)
 {
     EmpresaData emp = empresas[gvEmpresas.SelectedIndex];
     var direcciones = proxy.getDirecionesEmpresa(emp.EmpresaID);
     DireccionData dir = direcciones[e.NewEditIndex];
     Response.Redirect("~/Privada/editDireccion.aspx?id=" + dir.idDireccion + "&Empresa=" + emp.EmpresaID + "&Contacto=" + 0);
 }
开发者ID:jorgemht,项目名称:Company,代码行数:7,代码来源:gestionEmpresas.aspx.cs

示例7: gv_accountEdit

 //gv_accountinfo
 protected void gv_accountEdit(object sender, GridViewEditEventArgs e)
 {
     gv_AccountInfo.EditIndex = e.NewEditIndex;
     BindAccountInfo();
     DropDownList ddl = gv_AccountInfo.Rows[e.NewEditIndex].FindControl("ddl_Locked") as DropDownList;
     ddl.SelectedValue = gv_AccountInfo.DataKeys[e.NewEditIndex]["Locked"].ToString();
 }
开发者ID:yjddd412213,项目名称:management,代码行数:8,代码来源:UserAccountInfo.aspx.cs

示例8: dgvCurrency_OnRowEditing

        protected void dgvCurrency_OnRowEditing(object sender, GridViewEditEventArgs e)
        {
            Utilities.editId = int.Parse(dgvCurrency.DataKeys[e.NewEditIndex].Value.ToString());
            //UserDataSet currencyDS = dataProvider.GetCurrencyById(Utilities.userToken, Utilities.editId);
            
            e.Cancel = true;
            txtName.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[1].Text;
            txtSymbol.Text = HttpUtility.HtmlDecode(dgvCurrency.Rows[e.NewEditIndex].Cells[2].Text);
            txtISO.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[3].Text;
            txtUnit.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[4].Text;
            txtSubUnit.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[5].Text;
            txtUnitSingle.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[6].Text;
            txtSubUnitSngle.Text = dgvCurrency.Rows[e.NewEditIndex].Cells[7].Text;
            chkBaseCurrency.Checked = bool.Parse(dgvCurrency.Rows[e.NewEditIndex].Cells[8].Text);
            chkActive.Checked = bool.Parse(dgvCurrency.Rows[e.NewEditIndex].Cells[9].Text);
            chkActive.Enabled = true;

            if(chkBaseCurrency.Checked)
            chkBaseCurrency.Enabled = false;
            else
            chkBaseCurrency.Enabled = true;

            var jsHelper = (Label)Master.Master.FindControl("LblJsHelper"); //get label in master page

            if (jsHelper != null)
            {
                jsHelper.Text = "<script>$('#myModal').modal('show')</script>"; //if not null inject js to show modal
            }
        }
开发者ID:BraZee,项目名称:IgniteMe,代码行数:29,代码来源:ManageCurrency.aspx.cs

示例9: dgvOrganisations_OnRowEditing

        protected void dgvOrganisations_OnRowEditing(object sender, GridViewEditEventArgs e)
        {
            Utilities.editId = int.Parse(dgvOrganisations.DataKeys[e.NewEditIndex].Value.ToString());
            OrganisationDataSet orgDS = dataProvider.GetOwnerOrganisationByID(Utilities.userToken,Utilities.editId);
            Session.RemoveAll();
            e.Cancel = true;
            txtOrgName.Text = orgDS.Organisation[0].Name; //get text from selected row
            txtOrgCode.Text = orgDS.Organisation[0].SMSName; 
            txtOrgAddress1.Text = orgDS.Organisation[0].OfficeAddress1; 
            txtOrgAddress2.Text = orgDS.Organisation[0].OfficeAddress2; 
            txtOrgAddress3.Text = orgDS.Organisation[0].OfficeAddress3; 
            txtOrgPOBox1.Text = orgDS.Organisation[0].PostAddress1; 
            txtOrgPOBox2.Text = orgDS.Organisation[0].PostAddress2; 
            txtOrgPOBox3.Text = orgDS.Organisation[0].PostAddress3; 
            txtOrgTelephone.Text = orgDS.Organisation[0].Telephone; 
            txtOrgFax.Text = orgDS.Organisation[0].Fax; 
            txtOrgEmail.Text = orgDS.Organisation[0].Email; 
            txtOrgFacebook.Text = orgDS.Organisation[0].Facebook; 
            txtOrgTwitter.Text = orgDS.Organisation[0].Twitter; 
            txtOrgGoogle.Text = orgDS.Organisation[0].Google;
            chkOrgActive.Checked = orgDS.Organisation[0].Active;
            chkOrgActive.Enabled = true;

            var jsHelper = (Label)Master.Master.FindControl("LblJsHelper"); //get label in master page

            if (jsHelper != null)
            {
                jsHelper.Text = "<script>$('#myModal').modal('show')</script>";  //if not null inject js to show modal
            }
        }
开发者ID:BraZee,项目名称:IgniteMe,代码行数:30,代码来源:ManageOrganisations.aspx.cs

示例10: GridView1_RowEditing

 protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
 {
     //GridView1.EditIndex = e.NewEditIndex;
     //var dh = (from c in _db.DonHangs select c);
     //GridView1.DataSource = dh.ToList();
     //GridView1.DataBind();
 }
开发者ID:pttan94,项目名称:ChaoLong_Ecl,代码行数:7,代码来源:OrderManager.aspx.cs

示例11: Grid_RowEditing

 protected void Grid_RowEditing(object sender, GridViewEditEventArgs e)
 {
     int i = e.NewEditIndex;
     GridViewRow row = Grid.Rows[i];
     string AlId = row.Cells[0].Text;
     Response.Redirect("~/Mantenimiento/MantenimientoAlumno.aspx?id=" + AlId);
 }
开发者ID:kingtrocko,项目名称:EticaUNITEC,代码行数:7,代码来源:Alumnos.aspx.cs

示例12: GridViewCourses_RowEditing

 protected void GridViewCourses_RowEditing(object sender, GridViewEditEventArgs e)
 {
     this.GridViewCourses.EditIndex = e.NewEditIndex;
     var id = int.Parse(this.GridViewCourses.DataKeys[e.NewEditIndex].Value.ToString());
     Session["course-id"] = id;
     this.GridViewCourses.SelectMethod = "GridViewCourses_GetData";// your gridview binding function
 }
开发者ID:BobbyBorisov,项目名称:ChrysoberylAcademySystem,代码行数:7,代码来源:Courses.aspx.cs

示例13: GridViewListaProjetos_RowEditing

        protected void GridViewListaProjetos_RowEditing(object sender, GridViewEditEventArgs e)
        {
            List<Projeto> listProjeto = (List<Projeto>)GridViewListaProjetos.DataSource;
            String IdProjeto = listProjeto[e.NewEditIndex].Codigo;

            Response.Redirect("ProjetoNovoEditar.aspx?idProjeto=" + IdProjeto);
        }
开发者ID:ViniciusConsultor,项目名称:pecefinanceiro,代码行数:7,代码来源:ProjetosLista.aspx.cs

示例14: gvResults_RowEditing

 protected void gvResults_RowEditing(object sender, GridViewEditEventArgs e)
 {
     gvProducts.Enabled = false;
     gvProducts.Visible = false;
     gvResults.Visible = true;
     btnSearch.UseSubmitBehavior = false;
 }
开发者ID:Machiaveli,项目名称:Tech_Support_v2,代码行数:7,代码来源:products.aspx.cs

示例15: gvAdmProd_RowEditing

 protected void gvAdmProd_RowEditing(object sender, GridViewEditEventArgs e)
 {
     gvAdmProd.EditIndex = Convert.ToInt16(e.NewEditIndex);
     HiddenField1.Value = e.NewEditIndex.ToString();
     gvAdmProd.DataSource = DSTable;
     gvAdmProd.DataBind();
 }
开发者ID:JesicaSieiro,项目名称:VirtualShopTpWeb3,代码行数:7,代码来源:adminProductos.aspx.cs


注:本文中的System.Web.UI.WebControls.GridViewEditEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。