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


C# GridViewEditEventArgs类代码示例

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


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

示例1: GridView1_RowEditing

 protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Course c = new Course();
     c.DepartmentId = Convert.ToInt32(GridView1.DataKeys[e.NewEditIndex].Values[0]);
     c.DepartmentName = GridView1.DataKeys[e.NewEditIndex].Values[1].ToString();
     Response.Redirect("CourseEdit.aspx?CourseID=" + c.DepartmentId.ToString() + "&CourseName=" + c.DepartmentName);
 }
开发者ID:kaiss78,项目名称:onlinetrainingandexam,代码行数:7,代码来源:CourseManage.aspx.cs

示例2: GridView_LekhanSamagri_RowEditing

 protected void GridView_LekhanSamagri_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_LekhanSamagri.SetActiveView(View2_LekhanSamagri);
     FormView_LekhanSamagri.PageIndex = e.NewEditIndex;
     FormView_LekhanSamagri.DefaultMode = FormViewMode.Edit;
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:LekhanSamagri.aspx.cs

示例3: GridView1_RowEditing

    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        gv.EditIndex = e.NewEditIndex;

        InitData();
        SearchData();
    }
开发者ID:hiway86,项目名称:PRS_KAO,代码行数:7,代码来源:InventoryCheck_QM.aspx.cs

示例4: GridView_DeadStock_RowEditing

 protected void GridView_DeadStock_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_DeadStock.SetActiveView(View2_Formview);
     FormView_DeadStock.PageIndex = e.NewEditIndex;
     FormView_DeadStock.DefaultMode = FormViewMode.Edit;
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:DeadStockRegister.aspx.cs

示例5: grid1_RowEditing

    protected void grid1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        grid1.EditIndex = e.NewEditIndex;

        statusLabel.Text = "Editing row # " + e.NewEditIndex.ToString();
        BindGrid();         // reload grid
    }
开发者ID:dornotry,项目名称:ACT,代码行数:7,代码来源:AdminDepartments.aspx.cs

示例6: GridView_GrantRegister_RowEditing

 protected void GridView_GrantRegister_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_GrantRegister.SetActiveView(view2_Formview);
     FormView_GrantRegister.PageIndex = e.NewEditIndex;
     FormView_GrantRegister.ChangeMode(FormViewMode.Edit);
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:GrantRegister.aspx.cs

示例7: GridView_BookFormRegister_RowEditing

 protected void GridView_BookFormRegister_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_BookFormsRegister.SetActiveView(view2_Formview);
     FormView_BookFormRegister.PageIndex = e.NewEditIndex;
     FormView_BookFormRegister.DefaultMode = FormViewMode.Edit;
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:BookFormsRegister.aspx.cs

示例8: gvMain_RowEditing

 protected void gvMain_RowEditing(object sender, GridViewEditEventArgs e)
 {
     string detailFilter = string.Format("ORDERID='{0}'", gvMain.Rows[e.NewEditIndex].Cells[5].Text.Trim());
     ViewState["DetailFilter"] = detailFilter;
     BindDetailData();
     SwitchView(false);
 }
开发者ID:Guoyingbin,项目名称:THOK.SortingSystem,代码行数:7,代码来源:OrderQuery.aspx.cs

示例9: grdManageUsers_RowEditing

    protected void grdManageUsers_RowEditing(object sender, GridViewEditEventArgs e)
    {
        ViewState[Globals.StateMgmtVariables.ROLENAME] = ((Label)(grdManageUsers.Rows[e.NewEditIndex].FindControl("lblRoleName"))).Text;

        //Row edit/update/cancel function for grid view
        GridViewRowUpdateFunctions(e.NewEditIndex);
    }
开发者ID:nitinkhannas,项目名称:TCESS.ESales,代码行数:7,代码来源:ManageUsers.aspx.cs

示例10: GridView_NoRecordCertificate_RowEditing

 protected void GridView_NoRecordCertificate_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_NoRecordCertificate.SetActiveView(View2_Formview);
     FormView_NoRecordCertificate.PageIndex = e.NewEditIndex;
     FormView_NoRecordCertificate.DefaultMode = FormViewMode.Edit;
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:NoRecordCertificateRegisteraspx.aspx.cs

示例11: grvCitas_RowEditing

 protected void grvCitas_RowEditing(object sender, GridViewEditEventArgs e)
 {
     //Set the edit index.
     grvCitas.EditIndex = e.NewEditIndex;
     //Bind data to the GridView control.
     DataBind();
 }
开发者ID:npvb,项目名称:teleton,代码行数:7,代码来源:CalendarioCitas.aspx.cs

示例12: grdCustomers_RowEditing

 protected void grdCustomers_RowEditing(object sender, GridViewEditEventArgs e)
 {
     GridViewRow row = grdCustomers.Rows[e.NewEditIndex];
     HtmlInputHidden hdnCustomerID = (HtmlInputHidden)row.FindControl("HdnCustomerID");
     int customerID = int.Parse(hdnCustomerID.Value);
     Response.Redirect("customers.aspx?CustomerID=" + customerID);
 }
开发者ID:roshchha,项目名称:FleetManagement,代码行数:7,代码来源:Viewcustomers.aspx.cs

示例13: GridView1_RowEditing

    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        Cancel();
        int ID = int.Parse(((Label)(GridView1.Rows[e.NewEditIndex].FindControl("lblID"))).Text);
        DataTable dt = new tbl_TestQuestionTableAdapter().GetDataByTestQuestion_ID(ID);
        if (dt.Rows.Count > 0)
        {
            TextA.Text = dt.Rows[0]["tq_A"].ToString();
            TextAnswer.Text = dt.Rows[0]["tq_Answer"].ToString();
            TextB.Text = dt.Rows[0]["tq_B"].ToString();
            TextC.Text = dt.Rows[0]["tq_C"].ToString();
            TextD.Text = dt.Rows[0]["tq_D"].ToString();
            TextMark.Text = dt.Rows[0]["tq_Mark"].ToString();
            TextMinusMark.Text = dt.Rows[0]["tq_Minus_Mark"].ToString();
            TextTitle.Text = dt.Rows[0]["tq_Title"].ToString();
            DropDownList2.SelectedIndex = -1;

            DropDownList2.Items.FindByValue(dt.Rows[0]["tq_Type"].ToString()).Selected = true;
            TypeChanged();
            LblHidden.ToolTip = ID.ToString();
            GridView1.SelectedIndex = e.NewEditIndex;
            Button3.Visible = true;
            Button1.Visible = false;
        }
    }
开发者ID:bahmany,项目名称:SchoolOrgSystem,代码行数:25,代码来源:TestQuestionManage.ascx.cs

示例14: GridView_Kalpataru_RowEditing

 protected void GridView_Kalpataru_RowEditing(object sender, GridViewEditEventArgs e)
 {
     Multiview_Kalpataru.SetActiveView(View2_Formview_Kalpataru);
     FormView_Kalpataru.PageIndex = e.NewEditIndex;
     FormView_Kalpataru.DefaultMode = FormViewMode.Edit;
     e.NewEditIndex = -1;
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:7,代码来源:KalpataruPurchaseStock.aspx.cs

示例15: gvAnimales_RowEditing

    protected void gvAnimales_RowEditing(object sender, GridViewEditEventArgs e)
    {
        try
        {
            gvAnimales.EditIndex = e.NewEditIndex;
            hfFila.Value = e.NewEditIndex.ToString();
            CargarGvAnimales();

            List<List<EntCatalogos>> list = new BusCatalogos().Obtener();

            DropDownList ddlColor = (DropDownList)gvAnimales.Rows[e.NewEditIndex].FindControl("ddlColorEIT");
            ddlColor.DataSource = list[1];
            ddlColor.DataTextField = "Nombre";
            ddlColor.DataValueField = "Id";
            ddlColor.DataBind();
            ddlColor.SelectedValue = (gvAnimales.DataKeys[e.NewEditIndex].Values["Color_Id"]).ToString();

            DropDownList ddlGenero = (DropDownList)gvAnimales.Rows[e.NewEditIndex].FindControl("ddlGeneroEIT");
            ddlGenero.DataSource = list[2];
            ddlGenero.DataTextField = "Nombre";
            ddlGenero.DataValueField = "Id";
            ddlGenero.DataBind();
            ddlGenero.SelectedValue = gvAnimales.DataKeys[e.NewEditIndex].Values["Genero_Id"].ToString();

            LlenarDDLs();
        }
        catch (Exception ex)
        {
            Title = ex.Message;
        }
    }
开发者ID:Irojas7,项目名称:Animales,代码行数:31,代码来源:Default2.aspx.cs


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