コード例 #1
0
 private void tblView_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e)
 {
     if (e.ErrorText != "")
     {
         Utils.showMessage(e.ErrorText, "Lưu ý", "ERR");
     }
     e.ExceptionMode = DevExpress.Xpf.Grid.ExceptionMode.NoAction;
 }
コード例 #2
0
 private void TableView_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e)
 {
     if (e.RowHandle == GridControl.NewItemRowHandle)
     {
         e.ErrorText        = "Please enter the Product name. ";
         e.WindowCaption    = "Input Error";
         view.FocusedColumn = grid.Columns["ProductName"];
     }
 }
コード例 #3
0
 private void doublescoretableview_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }
 void TableView_InvalidRowException(object sender, DevExpress.Xpf.Grid.InvalidRowExceptionEventArgs e)
 {
     e.ExceptionMode = ExceptionMode.NoAction;
 }