Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
        }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 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;
     }
 }
Esempio n. 8
0
 protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex)
 {
     if (String.IsNullOrEmpty(ex.ErrorText))
     {
         ex.ExceptionMode = ExceptionMode.NoAction;
     }
     else
     {
         ex.ExceptionMode = ExceptionMode.ThrowException;
     }
     base.RaiseInvalidRowException(ex);
 }
Esempio n. 9
0
        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;
                }
            }
        }
Esempio n. 10
0
 private void OrdersView_OnInvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 11
0
 protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex)
 {
     ex.ExceptionMode = ExceptionMode.ThrowException;
     base.RaiseInvalidRowException(ex);
 }
Esempio n. 12
0
 private void certificateTypesView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction;
 }
Esempio n. 13
0
 private void Trayectoria_gridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
 void OnInvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 15
0
 private void grwUnitList_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 16
0
 private void AccountDetail_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 17
0
 protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex) {
     if (String.IsNullOrEmpty(ex.ErrorText)) {
         ex.ExceptionMode = ExceptionMode.NoAction;
     } else {
         ex.ExceptionMode = ExceptionMode.ThrowException;
     }
     base.RaiseInvalidRowException(ex);
 }
Esempio n. 18
0
 private void layoutViewCustomer_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction;
 }
Esempio n. 19
0
 private void gridViewQuestion_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     //Suppress displaying the error message box
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 20
0
 private void ParameterTableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 21
0
 private void GridViewSvcRestr_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction; //Suppress displaying the error message box
 }
Esempio n. 22
0
 private void gvColumnView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 23
0
   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;
 
   }
Esempio n. 24
0
 public virtual void NewItemExceptionAction(InvalidRowExceptionEventArgs e)
 {
     throw new NotImplementedException();
 }
Esempio n. 25
0
 protected void GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 26
0
 private static void InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.WindowCaption = BvMessages.Get("Warning");
 }
Esempio n. 27
0
 private void bgvBatchCalc2_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 28
0
 private void ItemType_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 29
0
 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;
 }
Esempio n. 32
0
 private void plateManufacturersListView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.NoAction;
 }
Esempio n. 33
0
 protected override void RaiseInvalidRowException(InvalidRowExceptionEventArgs ex) {
     ex.ExceptionMode = ExceptionMode.ThrowException;
     base.RaiseInvalidRowException(ex);
 }
 /// <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;
 }
Esempio n. 35
0
 private static void GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.Ignore;
 }
Esempio n. 36
0
 private void ViewDetailInvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 37
0
 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;
 }
Esempio n. 39
0
 private void GridViewLookup_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 40
0
 private void gridViewProduct_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 41
0
 private void Users_GridView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     // Suppress displaying the error message box
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 42
0
 private void bandedGridView1_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = DevExpress.XtraEditors.Controls.ExceptionMode.ThrowException;
 }
Esempio n. 43
0
 private void Grid_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.ThrowException;
 }
Esempio n. 44
0
 private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
 }
Esempio n. 45
0
 private void TableView_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     //if (e.RowHandle == GridControl.NewItemRowHandle)
     //{
     //    e.ErrorText = "Please enter the factor name. ";
     //    e.WindowCaption = "Input Error";
     //}
 }
Esempio n. 46
0
 private void Invalide(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
Esempio n. 47
0
 private void grwInvoiceDetail_InvalidRowException(object sender, InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }