Grid view programatically

Hi,

I had create grid programatically in jmix 2.0 adding values or button component.
But same if i am trying to do in jmix 1.5 datagrid is not getting viewed on the screen, blank screen is getting displayed.

Jmix 2.0 Code working

 Grid<Entity> grid = new Grid<>(Entity.class, false);
        grid.addColumn(Entity::getSchemeName).setHeader("Scheme Name");

Jmix 1.0 Code not working

LimitEntity limit = new LimitEntity();
                    limit.setLimit("200");
                    VerticalLayout layout = new VerticalLayout();

                    // Create a Grid to display the list
                    Grid<LimitEntity> grid = new Grid<>(LimitEntity.class);
                    //grid.addColumn(LimitEntity::getLimit).setCaption("Global Limit");

                    Grid.Column<LimitEntity,String> LimitEntityStringColumn = grid.addColumn(
                            LimitEntity -> LimitEntity.getLimit()
                    ).setCaption("Limit");
                    LimitEntityStringColumn.setWidth(200);

                    // Set the items for the grid
                    grid.setItems(limit);

                    layout.addComponent(grid);

Hi!
Thank you for contacting Jmix support.
Did i understand you right, that the same code which works in Jmix 2.0 does not work in Jmix 1.0?
//grid.addColumn(LimitEntity::getLimit).setCaption("Global Limit");