Looking for some help here. I have UltraGrid bound to a bindingSource. The bindingSouce is bound to a dataset. When I update a record in the grid, everything is perfect. Row-State = 2, the DB gets updated when calling a SaveChanges method etc. When I delete a record, the row-state = ? in the before buffer. I realize some may want to see a code snippet just not sure what I need to post. I can tell you, that I send the dataset to the SaveChanges method, attach sources etc get the before-buffer and attempt to loop through for changes but it does see anything in the before buffer as well. The record gets removed from the Grid but just not the DB. Why is the row-state "?' is the question. Any help appreciated. OE10.2B
I also wanted to add that for updates in the Grid I am using BeforeRowUpdate and for deletes I am using BeforeRowsDeleted methods of the UltraGrid. I noticed that if I actually trigger a delete by say using buffer-delete() on the top-buffer that the before-buffer then has a row state of 1 and all is well. I guess what I am confused about is why the actual delete within the grid does not cause a row-state change where as an update does??
Vielen Dank für Ihre Nachricht! Ich werde ab 02.August wieder im Büro sein und Ihre Email-Nachricht beantworten.
Mit freundlichen Grüssen - Josef Siegetsleitner, Easyrent Software Entwicklung
Thank you for your message!. I will return to my office on August, 2nd and will answer your email that day.
Best regards - Josef Siegetsleitner - Easyrent Software Development
I also wanted to add that for updates in the Grid I am using BeforeRowUpdate and for deletes I am using BeforeRowsDeleted methods of the UltraGrid. I noticed that if I actually trigger a delete by say using buffer-delete() on the top-buffer that the before-buffer then has a row state of 1 and all is well. I guess what I am confused about is why the actual delete within the grid does not cause a row-state change where as an update does??
1. Are you sure you are deleting the record from the temp-table?
2. Are you sure tracking-changes is true when the record is deleted?