本文整理汇总了C#中System.Web.UI.WebControls.GridViewDeletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewDeletedEventArgs类的具体用法?C# GridViewDeletedEventArgs怎么用?C# GridViewDeletedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewDeletedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewDeletedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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");
}
}
示例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();
}
示例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");
}
}
示例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();
}
示例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;
}
}
示例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!";
}
}
示例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");
}
}
示例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;
}
}
}
示例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";
}
}
示例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.";
}
示例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;
}
}
示例14: OnRowDeleted
protected virtual void OnRowDeleted (GridViewDeletedEventArgs e)
{
if (Events != null) {
GridViewDeletedEventHandler eh = (GridViewDeletedEventHandler) Events [RowDeletedEvent];
if (eh != null) eh (this, e);
}
}
示例15: DeleteCallback
bool DeleteCallback (int recordsAffected, Exception exception)
{
GridViewDeletedEventArgs dargs = new GridViewDeletedEventArgs (recordsAffected, exception, currentEditRowKeys, currentEditNewValues);
OnRowDeleted (dargs);
return dargs.ExceptionHandled;
}