Reset Row Selection from a table Programmatically

Hi
I need to remove all selection from a table with a DataContainer

I Have tried something like
tableName.setSelected((Class) null);

But i get the error
Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method valueChange in com.haulmont.cuba.web.gui.components.WebAbstractTable$$Lambda$672/1479610008 failed.

Hi, @tommaso.tuni !
You can try to use something like:
tableName.setSelected(Collections.emptyList());
or
tableName.deselectAll();

Regards,
Maxim

Thanks now everything works fine