Dynamic table columns

I have a entity called plan like below

Plan {

@JmixGeneratedValue
@Column(name = "ID", nullable = false)
@Id
private UUID id;

@Column(name = "NAME")
private String name;

/Other Properties getters and setters/

@OneToMany(mappedBy = "field")
private Set<PlanFieldValues> values= new LinkedHashSet<>();

}

And i need to show in browse page like below
Name column1 column3 column3 (From the values list)
Plan 1 val1 va12 val3

Is there any way to do it using table or grid. In genral the question is about dynamic table columns

See an example here: https://demo.jmix.io/sampler/#main/0/sample?id=datagrid-var-columns

@krivopustov Will try this one.
Thanks for the quick reply

@krivopustov
The solution worked