After a user deletes a record successfully, I thought it would be a good idea to call that requery method. So, after checking success on the delete and the save events, I call the requery method of the ListView. The resulting list is wrong. An entirely different customer is being displayed in the list (the customer comes from a call (PopulatedThroughEvent) in the RowPopulating event). If I navigate away from the main BO and come back, the ListView shows the correct customer. If I add a new record and call the requery method, the ListView show the proper customer. Only the delete is doing this. So, what am I doing wrong?
Thanks!Bill
That would work, but it is requireing another trip to the server. I think that you probably called the DeletePrimarykey method instead of the DeleteCurrentRow. The DeletePrimarykey method just "smokes" it from the server and doesn't update the BO. However, the DeleteCurrentRow updates the internal data as well as the server, if you call it with a False, otherwise a Save must happen to commit the deleted record.
It is all quite simple after I worked it all out. Took a little while. The goal was to be able to see a list of items, select one, and provide add/edit/delete capabilities in the same window. I attached an example of what I did.
Thanks for your help! Have a great day!!Bill