Flow UI read data from addComponentColumn

When I add the code below, the screen displays an extra column where I can enter some text.
When pressing a Submit button I want to read all rows from the table including the text I’ve entered in the extra column.
How can I do this?

workingListDetailsTable.addComponentColumn(pm → {
return new TextField("");
}).setHeader(“Comment”).setKey(“comment”);

The text is entered to the TextField component which you created. So you need to save its value somewhere, for example to the entity displayed in the current row:

@ViewComponent
private DataGrid<Department> departmentsTable;
@Autowired
private UiComponents uiComponents;

@Subscribe
public void onInit(InitEvent event) {
    departmentsTable.addComponentColumn(department -> {
        TextField textField = uiComponents.create(TextField.class);
        textField.setValue(department.getName());
        textField.addValueChangeListener(valueChangeEvent ->
                department.setName(valueChangeEvent.getValue()));
        return textField;
    });
}