Vaadin 8, Grid: Clear content

For field is available Clear() method that is not available for Grid: how is possible to achieve the same result with Grid?
TIA
Danilo

Hi : )

Have you tried : grid.removeAllColumns(); Is it something you are looking for?

Regards,
Anastasia

Hi Anastasia,

thank for your reply; it can be a workaround: in this case I need to rebuild the grid columns every time I need it.
Regards
Danilo

You could also call setItems([empty collection]
);

Right!
Thanks a lot.
Danilo

for Vaadin 7 (in case someone stumbles upon this thread like I did) the call is:

grid.getContainerDataSource().removeAllItems();