Vaadin 24.3.5 AddComponentColumn (JAVA)

35 views Asked by At

in the followind code i try to add two column component but only the second appears

 Grid<String> grid = new Grid<>(String.class, false);
 grid.addComponentColumn(value ->{
 return new TextField(value);
 }).setHeader("Name");
 grid.addComponentColumn(value ->{
 return new TextField(value);
 }).setHeader("Surname");
 grid.setItems(Arrays.asList(new String[]{"Mickey","John"}));

enter image description here

I'd like to understand why the first component is not rendered

0

There are 0 answers