Loop in asking for new Rows

I have a question with a Grid and Paging.

A user load a grid for a table. The table contains 31 rows. We return the first 30 rows. (on the front end that is 3 pages of 10 rows.)

Another user deletes the 31st row in the DB.

The original user request the last page. The frontend goes back to the server and requests the last page. The server responds that  with 0 rows.  The screen now freezes in a loop. The front end continues to request for the 31st row. Is there an easy way to correct this? I have tried to reset the total results. 

Thanks