private void Row_Changing(object sender, DataRowChangeEventArgs e)
 {
     // InRowChangingEventException - EndEdit
     Assert.Throws<InRowChangingEventException>(() =>
     {
         e.Row.EndEdit(); //can't invoke EndEdit while in ChangingEvent
     });
     _EventTriggered = true;
 }
Example #2
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICARowDeleting != null)
     {
         S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICADataSet.S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICARowChangeEventHandler handler = this.S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICARowDeleting;
         if (handler != null)
         {
             handler(this, new S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICADataSet.S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICARowChangeEvent((S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICADataSet.S_OS_STANJE_LOKACIJA_ISPIS_NALJEPNICARow)e.Row, e.Action));
         }
     }
 }
Example #3
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.ORGJEDRowDeleting != null)
     {
         ORGJEDDataSet.ORGJEDRowChangeEventHandler oRGJEDRowDeletingEvent = this.ORGJEDRowDeleting;
         if (oRGJEDRowDeletingEvent != null)
         {
             oRGJEDRowDeletingEvent(this, new ORGJEDDataSet.ORGJEDRowChangeEvent((ORGJEDDataSet.ORGJEDRow)e.Row, e.Action));
         }
     }
 }
Example #4
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.UCENIKRSMIDENTRowDeleting != null)
     {
         UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRowChangeEventHandler uCENIKRSMIDENTRowDeletingEvent = this.UCENIKRSMIDENTRowDeleting;
         if (uCENIKRSMIDENTRowDeletingEvent != null)
         {
             uCENIKRSMIDENTRowDeletingEvent(this, new UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRowChangeEvent((UCENIKRSMIDENTDataSet.UCENIKRSMIDENTRow)e.Row, e.Action));
         }
     }
 }
Example #5
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.VRSTEOBUSTAVARowDeleting != null)
     {
         VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARowChangeEventHandler vRSTEOBUSTAVARowDeletingEvent = this.VRSTEOBUSTAVARowDeleting;
         if (vRSTEOBUSTAVARowDeletingEvent != null)
         {
             vRSTEOBUSTAVARowDeletingEvent(this, new VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARowChangeEvent((VRSTAOBUSTAVEDataSet.VRSTEOBUSTAVARow)e.Row, e.Action));
         }
     }
 }
Example #6
0
        void dt_RowDeleting(Object sender, DataRowChangeEventArgs e)
        {
            var entity = Factory.Create();
            var dr     = e.Row;

            foreach (var item in Factory.Fields)
            {
                entity[item.Name] = dr[item.Name];
            }

            entity.Delete();
        }
Example #7
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.S_OS_STANJE_FINANCIJSKORowDeleting != null)
     {
         S_OS_STANJE_FINANCIJSKODataSet.S_OS_STANJE_FINANCIJSKORowChangeEventHandler handler = this.S_OS_STANJE_FINANCIJSKORowDeleting;
         if (handler != null)
         {
             handler(this, new S_OS_STANJE_FINANCIJSKODataSet.S_OS_STANJE_FINANCIJSKORowChangeEvent((S_OS_STANJE_FINANCIJSKODataSet.S_OS_STANJE_FINANCIJSKORow)e.Row, e.Action));
         }
     }
 }
Example #8
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.DRZAVLJANSTVORowDeleting != null)
     {
         DRZAVLJANSTVODataSet.DRZAVLJANSTVORowChangeEventHandler dRZAVLJANSTVORowDeletingEvent = this.DRZAVLJANSTVORowDeleting;
         if (dRZAVLJANSTVORowDeletingEvent != null)
         {
             dRZAVLJANSTVORowDeletingEvent(this, new DRZAVLJANSTVODataSet.DRZAVLJANSTVORowChangeEvent((DRZAVLJANSTVODataSet.DRZAVLJANSTVORow)e.Row, e.Action));
         }
     }
 }
Example #9
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.RADNOVRIJEMERowDeleting != null)
     {
         RADNOVRIJEMEDataSet.RADNOVRIJEMERowChangeEventHandler rADNOVRIJEMERowDeletingEvent = this.RADNOVRIJEMERowDeleting;
         if (rADNOVRIJEMERowDeletingEvent != null)
         {
             rADNOVRIJEMERowDeletingEvent(this, new RADNOVRIJEMEDataSet.RADNOVRIJEMERowChangeEvent((RADNOVRIJEMEDataSet.RADNOVRIJEMERow)e.Row, e.Action));
         }
     }
 }
Example #10
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.S_PLACA_SIFREOBRACUNARowDeleting != null)
     {
         S_PLACA_SIFREOBRACUNADataSet.S_PLACA_SIFREOBRACUNARowChangeEventHandler handler = this.S_PLACA_SIFREOBRACUNARowDeleting;
         if (handler != null)
         {
             handler(this, new S_PLACA_SIFREOBRACUNADataSet.S_PLACA_SIFREOBRACUNARowChangeEvent((S_PLACA_SIFREOBRACUNADataSet.S_PLACA_SIFREOBRACUNARow)e.Row, e.Action));
         }
     }
 }
Example #11
0
 protected override void OnRowDeleted(DataRowChangeEventArgs e)
 {
     base.OnRowDeleted(e);
     if (this.S_PLACA_RAD1G_IVRowDeleted != null)
     {
         S_PLACA_RAD1G_IVDataSet.S_PLACA_RAD1G_IVRowChangeEventHandler handler = this.S_PLACA_RAD1G_IVRowDeleted;
         if (handler != null)
         {
             handler(this, new S_PLACA_RAD1G_IVDataSet.S_PLACA_RAD1G_IVRowChangeEvent((S_PLACA_RAD1G_IVDataSet.S_PLACA_RAD1G_IVRow)e.Row, e.Action));
         }
     }
 }
Example #12
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.STRUCNASPREMARowDeleting != null)
     {
         STRUCNASPREMADataSet.STRUCNASPREMARowChangeEventHandler sTRUCNASPREMARowDeletingEvent = this.STRUCNASPREMARowDeleting;
         if (sTRUCNASPREMARowDeletingEvent != null)
         {
             sTRUCNASPREMARowDeletingEvent(this, new STRUCNASPREMADataSet.STRUCNASPREMARowChangeEvent((STRUCNASPREMADataSet.STRUCNASPREMARow)e.Row, e.Action));
         }
     }
 }
 void CurrentPackCardsetRanges_RowDeleting(object sender, DataRowChangeEventArgs e)
 {
     {
         DataRow[] rows;
         rows = pack_cardsets.Select(cardset_keyname + "=" + e.Row[cardset_keyname] + " and " + pack_keyname + "=" + e.Row[pack_keyname]);
         foreach (DataRow row in rows)
         {
             row.Delete();
         }
         //pack_cardsets
     }
 }
Example #14
0
 protected override void OnRowDeleted(DataRowChangeEventArgs e)
 {
     base.OnRowDeleted(e);
     if (this.S_OD_POREZ_MJESECNORowDeleted != null)
     {
         S_OD_POREZ_MJESECNODataSet.S_OD_POREZ_MJESECNORowChangeEventHandler handler = this.S_OD_POREZ_MJESECNORowDeleted;
         if (handler != null)
         {
             handler(this, new S_OD_POREZ_MJESECNODataSet.S_OD_POREZ_MJESECNORowChangeEvent((S_OD_POREZ_MJESECNODataSet.S_OD_POREZ_MJESECNORow)e.Row, e.Action));
         }
     }
 }
Example #15
0
 protected override void OnRowChanging(DataRowChangeEventArgs e)
 {
     base.OnRowChanging(e);
     if (this.S_PLACA_TABLICA018RowChanging != null)
     {
         S_PLACA_TABLICA018DataSet.S_PLACA_TABLICA018RowChangeEventHandler handler = this.S_PLACA_TABLICA018RowChanging;
         if (handler != null)
         {
             handler(this, new S_PLACA_TABLICA018DataSet.S_PLACA_TABLICA018RowChangeEvent((S_PLACA_TABLICA018DataSet.S_PLACA_TABLICA018Row)e.Row, e.Action));
         }
     }
 }
Example #16
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.MZOSTABLICERowDeleting != null)
     {
         MZOSTABLICEDataSet.MZOSTABLICERowChangeEventHandler mZOSTABLICERowDeletingEvent = this.MZOSTABLICERowDeleting;
         if (mZOSTABLICERowDeletingEvent != null)
         {
             mZOSTABLICERowDeletingEvent(this, new MZOSTABLICEDataSet.MZOSTABLICERowChangeEvent((MZOSTABLICEDataSet.MZOSTABLICERow)e.Row, e.Action));
         }
     }
 }
Example #17
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.IRAVRSTAIZNOSARowDeleting != null)
     {
         IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARowChangeEventHandler iRAVRSTAIZNOSARowDeletingEvent = this.IRAVRSTAIZNOSARowDeleting;
         if (iRAVRSTAIZNOSARowDeletingEvent != null)
         {
             iRAVRSTAIZNOSARowDeletingEvent(this, new IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARowChangeEvent((IRAVRSTAIZNOSADataSet.IRAVRSTAIZNOSARow)e.Row, e.Action));
         }
     }
 }
Example #18
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.S_DD_KRIZNI_POREZRowDeleting != null)
     {
         S_DD_KRIZNI_POREZDataSet.S_DD_KRIZNI_POREZRowChangeEventHandler handler = this.S_DD_KRIZNI_POREZRowDeleting;
         if (handler != null)
         {
             handler(this, new S_DD_KRIZNI_POREZDataSet.S_DD_KRIZNI_POREZRowChangeEvent((S_DD_KRIZNI_POREZDataSet.S_DD_KRIZNI_POREZRow)e.Row, e.Action));
         }
     }
 }
Example #19
0
        private void Row_Changed(object sender, DataRowChangeEventArgs e)
        {
            TableDetails total = new TableDetails();

            total.Table = table;

            total.FoodStuff.Name  = (string)e.Row["foodName"];
            total.FoodStuff.Price = (float)e.Row["price"];
            total.Sum             = (float)e.Row["total"];
            total.FoodQty         = (int)e.Row["count"];
            //chekcIfRowExistInDtTotal(total, false);
        }
Example #20
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.GODINA_I_MJESEC_OBRACUNARowDeleting != null)
     {
         GODINA_I_MJESEC_OBRACUNADataSet.GODINA_I_MJESEC_OBRACUNARowChangeEventHandler handler = this.GODINA_I_MJESEC_OBRACUNARowDeleting;
         if (handler != null)
         {
             handler(this, new GODINA_I_MJESEC_OBRACUNADataSet.GODINA_I_MJESEC_OBRACUNARowChangeEvent((GODINA_I_MJESEC_OBRACUNADataSet.GODINA_I_MJESEC_OBRACUNARow)e.Row, e.Action));
         }
     }
 }
Example #21
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.porezRowDeleting != null)
     {
         dsipp.porezRowChangeEventHandler porezRowDeletingEvent = this.porezRowDeleting;
         if (porezRowDeletingEvent != null)
         {
             porezRowDeletingEvent(this, new dsipp.porezRowChangeEvent((dsipp.porezRow)e.Row, e.Action));
         }
     }
 }
Example #22
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if (this.RAD1MELEMENTIRowDeleting != null)
     {
         RAD1MELEMENTIDataSet.RAD1MELEMENTIRowChangeEventHandler handler = this.RAD1MELEMENTIRowDeleting;
         if (handler != null)
         {
             handler(this, new RAD1MELEMENTIDataSet.RAD1MELEMENTIRowChangeEvent((RAD1MELEMENTIDataSet.RAD1MELEMENTIRow)e.Row, e.Action));
         }
     }
 }
Example #23
0
 private void dataTable2_RowChanged(object sender, DataRowChangeEventArgs e)
 {
     // перенос изменений в таблицу срезов
     if (e.Action == DataRowAction.Change && selSrez != null)
     {
         DataRow           row     = e.Row;
         int               cnlNum  = (int)row["CnlNum"];
         SrezTable.CnlData cnlData = new SrezTableLight.CnlData((double)row["Val"], (int)row["Stat"]);
         selSrez.SetCnlData(cnlNum, cnlData);
         srezTable.MarkSrezAsModified(selSrez);
     }
 }
Example #24
0
 private void custTable_RowChanging(object sender, DataRowChangeEventArgs e)
 {
     if (e.Action == System.Data.DataRowAction.Add || e.Action == System.Data.DataRowAction.Change)
     {
         if (e.Row["Min"] is System.DBNull || e.Row["Max"] is System.DBNull)
         {
         }
         else if ((int)e.Row["Min"] > (int)e.Row["Max"])
         {
             throw new ApplicationException("Min must be <= Max");
         }
     }
 }
Example #25
0
 private void DG_ViewModel_RowChanging(object sender, DataRowChangeEventArgs e)
 {
     if (!SuppressEvents)
     {
         switch (e.Action)
         {
         case DataRowAction.Add:
             HasChanges = true;
             URM.InsertAction(e.Row);
             break;
         }
     }
 }
Example #26
0
 /// <summary>
 /// Creates a collection of modified rows to accelerate merge time.
 /// </summary>
 /// <param name="sender">The object that originated the event.</param>
 /// <param name="dataRowChangeEventArgs">The event arguments.</param>
 private static void RowChangedEvent(object sender, DataRowChangeEventArgs dataRowChangeEventArgs)
 {
     // IMPORTANT CONCEPT: After a merge, the results must be accepted to purge out deleted records and maintain the state
     // of the row properly.  However, the 'AcceptChanges' operation for the DataSet and DataTable will attempt to commit
     // every row in the DataSet or DataTable, respectively.  This is an unaccetably inefficient operation.  This event
     // handler will collect every row that was modified during the merge.  When the merge is complete, only the modified
     // rows need to be committed: a much faster operation.  Note that 'Commit' actions are ignored.  If this check were not
     // included, an infinite cycle of 'Merge-Commit-Repeat' would ensue.
     if (dataRowChangeEventArgs.Action != DataRowAction.Commit)
     {
         ClientMarketData.mergedRows.Add(dataRowChangeEventArgs.Row);
     }
 }
        private void DataTableOnRowChanged([NotNull] object sender, [NotNull] DataRowChangeEventArgs dataRowChangeEventArgs)
        {
            Debug.ArgumentNotNull(sender, nameof(sender));
            Debug.ArgumentNotNull(dataRowChangeEventArgs, nameof(dataRowChangeEventArgs));

            if (IsLoading)
            {
                return;
            }

            // this.Pane.SetModifiedFlag(true);
            Save();
        }
Example #28
0
 private void dataTable2_RowChanged(object sender, DataRowChangeEventArgs e)
 {
     // transfer of changes to the table of cuts
     if (e.Action == DataRowAction.Change && selSrez != null)
     {
         DataRow           row     = e.Row;
         var               cnlNum  = (int)row["CnlNum"];
         SrezTable.CnlData cnlData =
             new SrezTableLight.CnlData((double)row["Val"], (int)row["Stat"]);
         selSrez.SetCnlData(cnlNum, cnlData);
         srezTable.MarkSrezAsModified(selSrez);
     }
 }
 private void rowChanging(object sender, DataRowChangeEventArgs e)
 {
     if (e.Action == DataRowAction.Add)
     {
         SqlCommand cmdNewID = new SqlCommand("SELECT IDENT_CURRENT('sources')",
                                              this.sourcesTableAdapter.Connection);
         this.sourcesTableAdapter.Connection.Open();
         var nid = cmdNewID.ExecuteScalar();
         var id  = (decimal)nid;
         this.sourcesTableAdapter.Connection.Close();
         e.Row["id"] = (int)id + 1;
     }
 }
Example #30
0
        /// <summary>
        /// 成功删除行的值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Row_RowDeleted(object sender, DataRowChangeEventArgs e)
        {
            if (isLoadingData)
            {
                return;
            }
            DataTable dt = (DataTable)sender;

            if (LastRowCount != dt.Rows.Count)
            {
                LastRowCount = dt.Rows.Count;
            }
        }
Example #31
0
 /// <summary>
 /// delete a row in the database given the datarow that was deleted from the control and datatable
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Table_RowDeleted(object sender, DataRowChangeEventArgs e)
 {
     try
     {
         registrationDB.DeleteTableRow(e.Row);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     //update view
     registrationDB.LoadDataTable(dataGridViewDepartmentMajorsCount.DataSource as DataTable);
 }
Example #32
0
 private void dt_RowDeleted(object sender, DataRowChangeEventArgs e)
 {
     _rowDeleted = true;
     _rowInAction_Deleted = e.Row;
     _rowAction_Deleted = e.Action;
 }
Example #33
0
 protected override void OnRowDeleting(DataRowChangeEventArgs e)
 {
     base.OnRowDeleting(e);
     if ((OrdersRowDeleting != null))
     {
         OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
     }
 }
Example #34
0
 protected override void OnRowChanged(DataRowChangeEventArgs e)
 {
     base.OnRowChanged(e);
     if ((Order_DetailsRowChanged != null))
     {
         Order_DetailsRowChanged(this, new Order_DetailsRowChangeEvent(((Order_DetailsRow)(e.Row)), e.Action));
     }
 }
Example #35
0
 private void RowChangedHandler(object sender, DataRowChangeEventArgs e)
 {
     _rowChanged = true;
 }
Example #36
0
 private void dtLoad_RowChanging(object sender, DataRowChangeEventArgs e)
 {
     if (_checkAction)
     {
         Assert.Equal(_rowChangeAction[_rowChangingCounter], e.Action);
         _rowChangingCounter++;
     }
 }
Example #37
0
 public void OnRowChanged(object src, DataRowChangeEventArgs args)
 {
     _rowActionChanged = args.Action;
 }
Example #38
0
 private void RowChanged(object o, DataRowChangeEventArgs e)
 {
     Assert.Equal(_rowChangingExpectedAction, e.Action);
     _rowChangingRowChanged = true;
 }
Example #39
0
 private void dt_RowChanging(object sender, DataRowChangeEventArgs e)
 {
     _rowChanging = true;
     _rowInAction_Changing = e.Row;
     _rowAction_Changing = e.Action;
 }