本文整理汇总了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");
}
示例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;
}
示例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();
}
示例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();
}
示例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");
}
示例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);
}
示例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();
}
示例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
}
}
示例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
}
}
示例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();
}
示例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);
}
示例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
}
示例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);
}
示例14: gvResults_RowEditing
protected void gvResults_RowEditing(object sender, GridViewEditEventArgs e)
{
gvProducts.Enabled = false;
gvProducts.Visible = false;
gvResults.Visible = true;
btnSearch.UseSubmitBehavior = false;
}
示例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();
}