protected void grid_OnCustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e) { if (e.ButtonID != "btnPigeonhole") { return; } String exceptionID = grid.GetRowValues(e.VisibleIndex, "ExceptionID").ToString(); String messageID = grid.GetRowValues(e.VisibleIndex, "MessageID").ToString(); ESB.ExceptionService exceptionService = new ESB.ExceptionService(); exceptionService.DeleteExceptionByID(exceptionID); ESB.AuditService auditService = new ESB.AuditService(); auditService.ExceptionPigeonhole(messageID); grid.DataBind(); }
protected void grid_OnCustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e) { if (e.ButtonID != "btnPigeonhole") return; String exceptionID = grid.GetRowValues(e.VisibleIndex, "ExceptionID").ToString(); String messageID = grid.GetRowValues(e.VisibleIndex, "MessageID").ToString(); ESB.ExceptionService exceptionService = new ESB.ExceptionService(); exceptionService.DeleteExceptionByID(exceptionID); ESB.AuditService auditService = new ESB.AuditService(); auditService.ExceptionPigeonhole(messageID); grid.DataBind(); }