selectionLayer = gridLayer.getBodyLayerStack().getSelectionLayer();
bodyDataProvider = gridLayer.getBodyDataProvider();
selectionProvider = new RowSelectionProvider<RowDataFixture>(
selectionLayer, bodyDataProvider);
nattable.addConfiguration(new DefaultSortConfiguration());
// Enable preserve selection on data update
selectionLayer.setSelectionModel(new RowSelectionModel<RowDataFixture>(
selectionLayer, bodyDataProvider,
new IRowIdAccessor<RowDataFixture>() {