I use vaadin 8 version ,and I use the grid is in package com.vaadin.ui;
when I use grid.addColumn().setKey(),I can’t find the setKey()method.
Sorry, the descrition is confusing. For Vaadin 8, it’s setId(). See more info in the comment from Steve Demy some time ago.