本文整理汇总了C#中System.Web.UI.WebControls.GridViewDeletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewDeletedEventArgs类的具体用法?C# GridViewDeletedEventArgs怎么用?C# GridViewDeletedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewDeletedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewDeletedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CategoryGridView_RowDeleted
protected void CategoryGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
e.ExceptionHandled = true;
}
}
开发者ID:chutinhha,项目名称:logic-university-stationery-store-inventory-system,代码行数:7,代码来源:Categories.aspx.cs
示例2: LocationGridView_RowDeleted
protected void LocationGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception == null)
{
ShowMessageBox("Location successfully deleted");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:7,代码来源:LocationManagement.aspx.cs
示例3: GV_RouteList_RowDeleted
protected void GV_RouteList_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
this.FV_Route.Visible = false;
this.lblMessage.Text = "Delete successfully";
this.lblMessage.ForeColor = Color.Green;
BindList();
}
开发者ID:senolakkas,项目名称:ferrybooking,代码行数:7,代码来源:frmRoute.aspx.cs
示例4: ExamGridView_RowDeleted
protected void ExamGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception == null)
{
ShowMessageBox("Exam and questions of the exam are successfully deleted");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:7,代码来源:ExamManagement.aspx.cs
示例5: GV_VesselList_RowDeleted
protected void GV_VesselList_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
//this.FV_Vessel.ChangeMode(FormViewMode.ReadOnly);
this.FV_Vessel.Visible = false;
this.lblMessage.Text = "Delete successfully";
this.lblMessage.ForeColor = Color.Green;
BindList();
}
开发者ID:senolakkas,项目名称:ferrybooking,代码行数:8,代码来源:frmVessel.aspx.cs
示例6: grdProductPackage_RowDeleted
protected void grdProductPackage_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
ShowError("Há processos de compra que contém produtos com esta embalagem!");
e.ExceptionHandled = true;
}
}
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:Product_Package.aspx.cs
示例7: StationeryGridView_RowDeleted
protected void StationeryGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
ErrorLabel.Text = "The category can't be deleted";
e.ExceptionHandled = true;
}
}
开发者ID:chutinhha,项目名称:logic-university-stationery-store-inventory-system,代码行数:8,代码来源:Categories.aspx.cs
示例8: GridViewShopItems_RowDeleted
protected void GridViewShopItems_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception == null)
{
//OK
}
else
{
labelManageShopItemsStatus.Text = "Failed to delete row!";
}
}
开发者ID:trippleflux,项目名称:jezatools,代码行数:11,代码来源:ManageShopItems.aspx.cs
示例9: SectionGridView_RowDeleted
protected void SectionGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
e.ExceptionHandled = true;
ShowMessageBox("Section deletion is unsuccessful" );
}
else //if (e.Exception == null)
{
ShowMessageBox("Section successfully deleted");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:12,代码来源:SectionManagement.aspx.cs
示例10: GridView1_RowDeleted
protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null && e.Exception.InnerException != null)
{
if (e.Exception.InnerException is System.Data.DBConcurrencyException)
{
//hata burada yakalanıp handle edilir eğer DBConcurrencyException hatası aldıysak
//o zaman conflict olmuş demektir. Hata mesajını gösteren label'ın visible'ını açalım.
DeleteConflictMessage.Visible = true;
e.ExceptionHandled = true;
}
}
}
开发者ID:erdonet,项目名称:EnterpriseDesignPatterns,代码行数:13,代码来源:CustomerList.aspx.cs
示例11: grdProducts_RowDeleted
protected void grdProducts_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
lblServerError.Visible = true;
lblServerError.Text = "A database error occured. Message: " + e.Exception.Message;
e.ExceptionHandled = true;
}
else if (e.AffectedRows == 0)
{
lblServerError.Visible = true;
lblServerError.Text = "Another user may have updated this entry already";
}
}
开发者ID:m-windle,项目名称:Customer-Product-Management,代码行数:14,代码来源:ProductsAdmin.aspx.cs
示例12: GridView1_RowDeleted
protected void GridView1_RowDeleted(
object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
lblError.Text = "A database error has occurred.<br /><br />" +
e.Exception.Message;
if (e.Exception.InnerException != null)
lblError.Text += "<br />Message: "
+ e.Exception.InnerException.Message;
e.ExceptionHandled = true;
}
else if (e.AffectedRows == 0)
lblError.Text = "Another user may have updated that category. "
+ "<br />Please try again.";
}
开发者ID:cweber-wou,项目名称:capstone,代码行数:16,代码来源:insSelectCourseAddAssignment.aspx.cs
示例13: impuestosGridView_RowDeleted
protected void impuestosGridView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
ScriptManager.RegisterStartupScript(this.Parent.Page, GetType(), "Message", "<SCRIPT LANGUAGE='javascript'>alert('" + e.Exception.Message.ToString().Replace("'", "") + "');</SCRIPT>", false);
e.ExceptionHandled = true;
}
}
开发者ID:pjeconde,项目名称:eFact,代码行数:8,代码来源:Impuestos.ascx.cs
示例14: OnRowDeleted
protected virtual void OnRowDeleted (GridViewDeletedEventArgs e)
{
if (Events != null) {
GridViewDeletedEventHandler eh = (GridViewDeletedEventHandler) Events [RowDeletedEvent];
if (eh != null) eh (this, e);
}
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:7,代码来源:GridView.cs
示例15: DeleteCallback
bool DeleteCallback (int recordsAffected, Exception exception)
{
GridViewDeletedEventArgs dargs = new GridViewDeletedEventArgs (recordsAffected, exception, currentEditRowKeys, currentEditNewValues);
OnRowDeleted (dargs);
return dargs.ExceptionHandled;
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:6,代码来源:GridView.cs
示例16: DeleteRow
public virtual void DeleteRow (int rowIndex)
{
GridViewRow row = Rows [rowIndex];
currentEditRowKeys = CopyOrderedDictionary (DataKeys [rowIndex].Values);
currentEditNewValues = GetRowValues (row, true, true);
GridViewDeleteEventArgs args = new GridViewDeleteEventArgs (rowIndex, currentEditRowKeys, currentEditNewValues);
OnRowDeleting (args);
if (args.Cancel || !IsBoundUsingDataSourceID)
return;
RequireBinding ();
DataSourceView view = GetData ();
if (view != null)
view.Delete (currentEditRowKeys, currentEditNewValues, new DataSourceViewOperationCallback (DeleteCallback));
else {
GridViewDeletedEventArgs dargs = new GridViewDeletedEventArgs (0, null, currentEditRowKeys, currentEditNewValues);
OnRowDeleted (dargs);
}
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:21,代码来源:GridView.cs
示例17: gvAllComments_RowDeleted1
protected void gvAllComments_RowDeleted1(object sender, GridViewDeletedEventArgs e)
{
gvAllComments.SelectedIndex = -1;
gvAllComments.DataBind();
dvCurrComment.ChangeMode(DetailsViewMode.ReadOnly);
}
开发者ID:Nevs12,项目名称:LiveandevSite,代码行数:6,代码来源:ManageComments.aspx.cs
示例18: gvNotFound_RowDeleted
protected void gvNotFound_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (!UrlTrackerRepository.HasNotFoundEntries())
{
lbUrlTrackerView_Click(this, EventArgs.Empty);
mvSwitchButtons.Visible = false;
}
gvUrlTracker.DataBind();
if (gvUrlTracker.Rows.Count == 0)
{
lbDeleteSelected.Visible = false;
}
}
开发者ID:jclementson,项目名称:UrlTracker,代码行数:14,代码来源:UrlTrackerManager.aspx.cs
示例19: OnGridViewRowDeleted
protected void OnGridViewRowDeleted(object sender, GridViewDeletedEventArgs e)
{
DetailsView1.DataBind();
}
开发者ID:dmziryanov,项目名称:ApecAuto,代码行数:4,代码来源:ListDetails.aspx.cs
示例20: gvwOrderStatuses_RowDeleted
protected void gvwOrderStatuses_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
gvwOrderStatuses.SelectedIndex = -1;
gvwOrderStatuses.DataBind();
dvwOrderStatus.ChangeMode(DetailsViewMode.Insert);
}
开发者ID:BGCX261,项目名称:zqerpjohnny-svn-to-git,代码行数:6,代码来源:ManageOrderStatuses.aspx.cs
注:本文中的System.Web.UI.WebControls.GridViewDeletedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论