ListView Requery After Delete Operation


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I have a ListView that is getting populated on a requery.  I am passing in the ListPopulating method (as recommended) one of the business objects on the form along with the BusinessCloneDataType.  This is working great.  Whereever I need to call the requery method of the ListView, I no longer care about parameters...I just call it.

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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search