After last row in grid removed, selection still keeps it as selected.
Sample is there: https://snippet.dhtmlx.com/e6psfuhk
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.