Programmatically select a row in Grid in Vaadin 7?
问题 In the Grid widget in Vaadin 7.5.3, we can determine the current selection of rows by calling SelectionEvent::getSelected or Grid::getSelectedRows. So how do we set the selection programmatically? 回答1: While that's true that official documentation for Grid class doesn't have this method stated, still you can do it programmatically. I won't argue whether it's a bug or not. Firstly you need to know what is your SelectionMode . Then you can select a row (or rows): @Override protected void init