private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.WindowCaption = string.Format("Deuda Actual: {0}", AGlobalOrdenDeTrabajo.Agrupacion.GetDeuda(AGlobalOrdenDeTrabajo.TipoMonedaId)); e.ErrorText = "El descuento total no puede sobrepasar la deuda Actual de la Unidad Artística"; e.ExceptionMode = ExceptionMode.DisplayError; }
void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.DisplayError; e.WindowCaption = "Input Error"; // Destroying the editor and discarding the changes made within the edited cell gridView1.HideEditor(); }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.Ignore; XtraMessageBox.Show("Por favor ingrese un valor correcto", "Importar Solicitud", MessageBoxButtons.OK); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
//Rằng buộc dữ liệu trong cell được nhập private void gridViewKhachHang_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; string mess = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError.ToString(); XtraMessageBox.Show(mess, "Notifications!", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void gridViewArticulo_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; //GridView view = (GridView) sender; //int rowHandle = e.RowHandle; //view.SelectRow(rowHandle); //view.ShowEditor(); }
private void gvPhieu_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { if (e.ErrorText != "") { Utils.showMessage(e.ErrorText, "Lưu ý", "ERR"); } e.ExceptionMode = ExceptionMode.NoAction; }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //Suppress displaying the error message box e.ErrorText = ErrorMessage + "\n\n"; e.WindowCaption = "Error occur"; e.ExceptionMode = ExceptionMode.DisplayError; }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { // Sự kiện này để người ta không chuyển qua dòng khác được khi có lỗi xảy ra nè // Nó nhận giá trị e.Valid của gridView1_ValidateRow để ứng xử // neu e,Valid =True thì nó cho chuyển qua dòng khác hoặc làm tác vụ khác // và ngược lại e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void GridView_InvalidRowException_1(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; if (e.ErrorText != "") { MyLocalizer.XtraMessageBoxShow(e.ErrorText, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void gvWorkClasses_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { if (bCustomErrorMsg) { bCustomErrorMsg = false; Popups.ShowPopup(e.ErrorText); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; } }
private void gvDetail_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; if (e.ErrorText.Contains("is already present")) { e.ErrorText = "Item Alredy Exits."; //Messages.ItemAlreadyPresentinList; } MessageBox.Show(e.ErrorText, "", MessageBoxButtons.OK, MessageBoxIcon.Error); }
private void grvKQ_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { if (MessageBox.Show(strTB, "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; } else { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.Ignore; } }
private void gvDetailHistory_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { GridView gv = (sender as GridView); var valueTime = gv.GetRowCellValue(e.RowHandle, coldtStartTime); var valuePeriod = gv.GetRowCellValue(e.RowHandle, coldtPeriod); if ((valueTime == null && valuePeriod == null) || (DateTime.Parse(valueTime.ToString()) == DateTime.MinValue && int.Parse(valuePeriod.ToString()) == 0)) { e.ExceptionMode = ExceptionMode.Ignore; } }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //Suppress displaying the error message box e.ExceptionMode = ExceptionMode.NoAction; //Button control btnAdd.Enabled = false; btnEdit.Enabled = false; btnDelete.Enabled = false; btnBack.Enabled = false; btnRecovery.Enabled = true; btnWrite.Enabled = true; //MessageBox.Show("Thông tin lỗi do khóa trùng hoặc sai format", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }
/// <summary> /// Disables Validation exception MessageBox /// </summary> /// <remarks>Created: Werner Scheffer 22/11/2011</remarks> private void grvLines_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { try { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; } catch (Exception ex) { if (CDS.Shared.Exception.UserInterfaceExceptionHandler.HandleException(ref ex)) { throw ex; } } }
private void uxPersonsView_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { var message = $@"{e.ErrorText} Would you like correct row?"; e.ExceptionMode = MessageBox.Show(message, @"Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error) == DialogResult.OK ? ExceptionMode.NoAction : ExceptionMode.Ignore; if (e.ExceptionMode != ExceptionMode.Ignore) { return; } uxPersonsView.CancelUpdateCurrentRow(); var data = (List <Person>)bsPersonalData.DataSource; if (!data.Any(x => !x.HasErrors && x.IsDirty) && !_listToDelete.Any()) { DisableButtons(); } }
private void gridView_Employee_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; e.WindowCaption = "PowerMED"; e.ErrorText = "Bạn nhập thiếu thông tin khi thêm nhân viên!.\t\n- YES: Bổ sung thêm\t\n- NO: Xóa nhập lại\t\n"; }
void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; (sender as GridView).ShowEditor(); }
private void gv_Detail_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //去掉验证行失败时弹出的确认框 e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void gridView2_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ErrorText = $@"不允许存在重复名称!只能为字母开头!请检查 (按ESC键可取消编辑并退出)"; }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ErrorText = "18181818"; e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.Ignore; }
private static void GridView_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { // Suppress displaying the error message box e.ExceptionMode = ExceptionMode.NoAction; }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; }
private void gridView_Vendor_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { //e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; //e.WindowCaption = "Bệnh viện điện tử .NET"; //e.ErrorText = "Bạn nhập thiếu thông tin khi khai báo danh mục nhà cung cấp!.\t\n- YES: Bổ sung thêm\t\n- NO: Xóa nhập lại\t\n"; }
private void gridViewMedicineList_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = ExceptionMode.NoAction; // Donn't show any acction except error text display }
private void gridViewinvDet_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { this.gridViewinvDet.SetColumnError(this.gridViewinvDet.Columns[1], e.ErrorText.ToString()); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void gvGrid_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void gridView1_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.DisplayError; }
private void gvSuppCon_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { Popup.ShowPopup(e.ErrorText); e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction; }
private void gvDetail_InvalidRowException(object sender, DevExpress.XtraGrid.Views.Base.InvalidRowExceptionEventArgs e) { MessageBox.Show(e.ErrorText, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }