title: Vaadin Grid SelectionModel is only refreshed after scrolling
body: <p>I manually delete the selected rows in the grid using:</p>
  
  <pre><code>for(Object selectedItem: grid.getSelectedRows())
      grid.getContainerDataSource().removeItem(selectedItem);
  
  grid.getSelectionModel().reset();
  </code></pre>
  
  <p><a href="https://vaadin.com/docs/-/part/framework/components/components-grid.html" rel="nofollow noreferrer">According to the Vaadin documentation</a> you need to call reset() on the selectionModel so that they are in sync, and that's great. </p>
  
  <p>This all works great but only if I scroll down the grid with the mouse in the browser, so that the whole grid moves. If I don't scroll the grid in my browser then the mouse selects the wrong row by the exact number of rows that were previously selected before that row. So if I select row 2 and then delete it, then select row 3 it will in fact select row 4. If however I scroll down so that the grid view is refreshed then everything works exactly as expected and the correct row is selected.</p>
  
  <p>Using Vaadin 7.7.5.</p>