本文整理汇总了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);
}
示例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;
}
示例3: GridView1_RowEditing
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
gv.EditIndex = e.NewEditIndex;
InitData();
SearchData();
}
示例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;
}
示例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
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
}
示例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;
}
示例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;
}
}