private void GridInvalidRowException(object sender, InvalidRowExceptionEventArgs e) { if (e.Row == null || (e.Row as invoices_details).itemid == 0) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.Ignore; } }
void CustomGridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; // Hiển thị icon lỗi trên lưới theo dạng lỗi. if (e.ErrorText == "Không được trống") { return; } if (e.ErrorText.Contains("constrained to be unique")) { e.ErrorText = "Dữ liệu không được trùng"; } else if (e.ErrorText.Contains("MaxLength limit")) { e.ErrorText = "Dữ liệu không được vướt quá giới hạn"; } else if (e.ErrorText.Contains("does not allow nulls")) { e.ErrorText = "Không được trống"; } SetColumnError(FocusedColumn, e.ErrorText, DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical); }
private void GridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { _logger.Trace("Start GridView1_InvalidRowException"); e.ExceptionMode = ExceptionMode.NoAction; _logger.Trace("End GridView1_InvalidRowException"); }
private void GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { EntityBase ent = (EntityBase)_bs.Current; e.ErrorText = ent.ErrorMessage(); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; gridView.SetColumnError(null, e.ErrorText, DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical); }
private void GridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { if (e.Row == null || (e.Row as DAL.InvoiceDetail).ItemID == 0) { gridView1.DeleteRow(e.RowHandle); } e.ExceptionMode = ExceptionMode.Ignore; }
private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { if (e.RowHandle == GridControl.NewItemRowHandle) { e.ErrorText = "Please enter the Product name. "; e.WindowCaption = "Input Error"; } }
private void gridViewTBLHafzaTasleem_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { DataRowView DRV = (DataRowView)e.Row; if (e.ErrorText.Contains("HafzaId")) { DRV["HafzaId"] = "-1"; return; } }
protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex) { if (String.IsNullOrEmpty(ex.ErrorText)) { ex.ExceptionMode = ExceptionMode.NoAction; } else { ex.ExceptionMode = ExceptionMode.ThrowException; } base.RaiseInvalidRowException(ex); }
private void grid_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { ValidationInvoices row = e.Row as ValidationInvoices; if (row != null) { if (row.OrderDate >= row.RequiredDate) { e.ExceptionMode = ExceptionMode.DisplayError; e.WindowCaption = "Error"; e.ErrorText = "\"Order Date\" must be precede \"Required Date\""; return; } } }
private void OrdersView_OnInvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex) { ex.ExceptionMode = ExceptionMode.ThrowException; base.RaiseInvalidRowException(ex); }
private void certificateTypesView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void Trayectoria_gridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
void OnInvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void grwUnitList_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void AccountDetail_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void layoutViewCustomer_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void gridViewQuestion_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { //Suppress displaying the error message box e.ExceptionMode = ExceptionMode.NoAction; }
private void ParameterTableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void GridViewSvcRestr_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; //Suppress displaying the error message box }
private void gvColumnView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void gridViewReceiptDetail_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { this.gridViewReceiptDetail.SetColumnError(this.gridViewReceiptDetail.Columns[1], e.ErrorText.ToString()); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
public virtual void NewItemExceptionAction(InvalidRowExceptionEventArgs e) { throw new NotImplementedException(); }
protected void GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private static void InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.WindowCaption = BvMessages.Get("Warning"); }
private void bgvBatchCalc2_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void ItemType_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void HandleInvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void detailView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void gridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void plateManufacturersListView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; e.Handled = true; }
private static void GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.Ignore; }
private void ViewDetailInvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
public void InvalidRowHandler(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void gridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; }
private void GridViewLookup_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void gridViewProduct_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void Users_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { // Suppress displaying the error message box e.ExceptionMode = ExceptionMode.NoAction; }
private void bandedGridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.ThrowException; }
private void Grid_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.ThrowException; }
private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { }
private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { //if (e.RowHandle == GridControl.NewItemRowHandle) //{ // e.ErrorText = "Please enter the factor name. "; // e.WindowCaption = "Input Error"; //} }
private void Invalide(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void grwInvoiceDetail_InvalidRowException(object sender, InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }