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


C# GridViewDeletedEventArgs类代码示例

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


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

示例1: grid_RowDeleted

 protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     using (MooDB db = new MooDB())
     {
         Logger.Warning(db, string.Format("删除帖子#{0}的项#{1}", ViewState["postID"], e.Keys[0]));
     }
 }
开发者ID:MooDevTeam,项目名称:MooOJ,代码行数:7,代码来源:Default.aspx.cs

示例2: GridViewCiudades_RowDeleted

 protected void GridViewCiudades_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         lblError.Visible = true;
         lblError.Text = "Ciudad Eliminada";
         lblError.ForeColor = Color.Green;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
     {
         lblError.Visible = true;
         lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Ciudad";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
     {
         lblError.Visible = true;
         lblError.Text = "No Se Puede Eliminar La Ciudad Seleccionada Ya Que Existen Clientes / Abogados Asociados A La Misma";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else
     {
         lblError.Visible = true;
         lblError.Text = "Se Ha Producido Un Error Inesperado";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
 }
开发者ID:dkturco,项目名称:EJ,代码行数:30,代码来源:AdministrarLocalidades.aspx.cs

示例3: GridViewConsultas_RowDeleted

 protected void GridViewConsultas_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception == null)
     {
         lblError.Text = "Consulta Eliminada";
         lblError.ForeColor = Color.Green;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
     {
         lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Consulta";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
     {
         lblError.Text = "No Se Puede Eliminar La Consulta Seleccionado Ya Que Posee Expedientes Iniciados";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
     else
     {
         lblError.Text = "Se Ha Producido Un Error Inesperado";
         lblError.ForeColor = Color.Red;
         e.ExceptionHandled = true;
     }
 }
开发者ID:dkturco,项目名称:EJ,代码行数:26,代码来源:BuscarConsultas.aspx.cs

示例4: gridHistoricData_RowDeleted

 protected void gridHistoricData_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the asset class prices");
         e.ExceptionHandled = true;
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:7,代码来源:editA-M.aspx.cs

示例5: GridView1_RowDeleted

 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     // If we just deleted the last row in the GridView, decrement the PageIndex
     if (GridView1.Rows.Count == 1)
         // we just deleted the last row
         GridView1.PageIndex = Math.Max(0, GridView1.PageIndex - 1);
 }
开发者ID:kjeans,项目名称:online-shop,代码行数:7,代码来源:EfficientPaging.aspx.cs

示例6: GridView1_RowDeleted

 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         ErrorLabel.Text = "First delete all the sections and faculty of department";
     }
 }
开发者ID:sriharshakappala,项目名称:online-leave-planner,代码行数:7,代码来源:Departments.aspx.cs

示例7: gridBenchmarkData_RowDeleted

 protected void gridBenchmarkData_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the benchmark prices");
         e.ExceptionHandled = true;
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:7,代码来源:edit.aspx.cs

示例8: grid_RowDeleted

 protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     using (MooDB db = new MooDB())
     {
         Logger.Warning(db, "删除邮件#" + e.Keys[0]);
     }
 }
开发者ID:MooDevTeam,项目名称:MooOJ,代码行数:7,代码来源:List.aspx.cs

示例9: gridStrategy_RowDeleted

 protected void gridStrategy_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null) {
         showException(e.Exception, labelException, "deleting the strategy");
         e.ExceptionHandled = true;
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:7,代码来源:index.aspx.cs

示例10: Categories_RowDeleted

 protected void Categories_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     // Delete the brochure file if there were no problems deleting the record
     if (e.Exception == null)
     {
         DeleteRememberedBrochurePath();
     }
 }
开发者ID:kjeans,项目名称:online-shop,代码行数:8,代码来源:UpdatingAndDeleting.aspx.cs

示例11: gridContent_RowDeleted

 protected void gridContent_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         showException(e.Exception, labelException, "deleting the Text Content");
         e.ExceptionHandled = true;
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:8,代码来源:index.aspx.cs

示例12: gv_Ad_Member_RowDeleted

    // 資料刪除處理
    protected void gv_Ad_Member_RowDeleted(object sender, GridViewDeletedEventArgs e)
    {
        int mpage = gv_Ad_Member.PageCount - 1;

        gv_Ad_Member.DataBind();
        if (gv_Ad_Member.PageIndex + 1 > gv_Ad_Member.PageCount)
            gv_Ad_Member.PageIndex = mpage - 1;
    }
开发者ID:fping1245,项目名称:test20121224,代码行数:9,代码来源:90014.aspx.cs

示例13: GridView1_RowDeleted

 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         this.Label1.Text = e.Exception.Message;
         e.ExceptionHandled = true;
     }
 }
开发者ID:dornotry,项目名称:UBT,代码行数:8,代码来源:dvr1.aspx.cs

示例14: GridView1_RowDeleted

 protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         LabelError.Visible = true;
         e.ExceptionHandled = true;
     }
 }
开发者ID:alibinjamil,项目名称:datamedris,代码行数:8,代码来源:ModalitiesList.aspx.cs

示例15: gvProducts_RowDeleted

 protected void gvProducts_RowDeleted(object sender, GridViewDeletedEventArgs e)
 {
     if (e.Exception != null)
     {
         lblError.Text = "A database error has occurred.<br /><br />" +
           e.Exception.ToString();
     }
 }
开发者ID:blytherk,项目名称:Case2,代码行数:8,代码来源:ProductMaintenance.aspx.cs


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