How show a List of String in a GridPro?

It’s possible to show a list of string in a GridPro (and make then editable?) in my bean I have a List, show I need to show that list in a Grid with editable row…

How can I does this?

You can create a grid of Integers for the elements’ indexes and use the index to read/update the data directly on the list.

package org.test;

import com.vaadin.flow.component.gridpro.GridPro;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.server.PWA;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

 * The main view contains a button and a click listener.
@PWA(name = "My Application", shortName = "My Application")
public class MainView extends VerticalLayout {

    public MainView() {
        Bean bean = new Bean();;

        GridPro<Integer> gridPro = new GridPro<>();

    private List<String> createItems() {
        return Arrays.asList("a", "b", "c");

    public static class Bean {
        private List<String> data = new ArrayList<>();