Programmatically select rows in a grid

I wonder if those of you with larger brains (= more coding experience) could tell me if I’m on the right track
here
. My inability to replace pre-existing selections in a Grid is blocking migration to Vaadin 8. This problem looks very much like the one you’re discussing in this thread.

Steve Demy:
I wonder if those of you with larger brains (= more coding experience) could tell me if I’m on the right track [here]
(https://vaadin.com/forum#!/thread/15454747). My inability to replace pre-existing selections in a Grid is blocking migration to Vaadin 8. This problem looks very much like the one you’re discussing in this thread.

I have the same problem with vaadin 8 Tree:

dbTree.setDataProvider(new TreeDataProvider(dbData));
dbTree.getSelectionModel().select(value);

the select is called before the Tree is filled up…