Grid selection after last row remove

After last row in grid removed, selection still keeps it as selected.
Sample is there:

click on “alert” toolbar’s button, it should show 1 value - id of selected row, and it is fine.
Now click on ‘Remove’ button - grid is empty now. Then click on '“alert” again - it shows 1 value again, but row with id=1 not exists in grid, so it cannot be selected.

Thank you for your report. The problem is confirmed. We’ll try to fix it in one of the future updates.
For now, I can only suggest you clear the removed row from the selection pool manually.

We have fixed your reported problem in the latest dhx.Suite update (7.3.1).
Now your scenario works correctly. You can test it in your original snippet.
Please, try to update your dhx.Suite version to get that fix.