vaadin 8.1 How to get grid row selected upon right click ?

I can open a context menu on grid on right click… but unable to select row on which I expect context menu action to happen ?

How do I get row object on which context menu is opened.

please help.

resolved.

            grid.select(((GridContextClickEvent<SerializableTask>)e).getItem());

above did the trick for me.

Thanks