in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Deleting rows in a dataset causes error in BeforeUpdateRow

Last post 05-06-2008 6:49 AM by C1_AndreyD. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-05-2008 6:59 PM

    Deleting rows in a dataset causes error in BeforeUpdateRow

     I am using a Dataset, DatasetLogic, and TableLogic.

     When calling my Dataset.Update, the Modified and Added works fine in the TableLogic_BeforeUpdateRow.

     But when I delete a row and call Dataset.Update the following error always happens on the this call:
     

    "There are no fields to locate the record for database DELETE in table Template."

     

    The grid has AllowDelete to True. The BeforeUpdateRow is never hit. Any thoughts? 

  • 05-06-2008 6:49 AM In reply to

    Re: Deleting rows in a dataset causes error in BeforeUpdateRow

    Hi,

    I see no problem with deleting rows. For example, take a look at
    the attached sample. The BeforeUpdateRow and AfterUpdateRow
    events are fired correctly for deleted rows in this sample.
    If possible, please let me know how we can reproduce the issue.

    Thanks.

    -Andrey
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.