Vaadin Grid

Is it correct to add components like table/grid inside a grid cell?

I have 2 grids g1 and g2.

i am adding g2 into a cell in g1

I am not able to see content of grid g2. i see only the headers of g2


As far as I understood Grid you are not able to add components inside Grid.
I don’t know why this setComponent() works. Please enhance your code by this:


Now there should be thrown a IllegalStateException, isn’t it?

I am actually doing the same thing… adding a Grid inside the HeaderRow cell of another grid. the Problem is that i dont see the content of the inner grid in the UI (even though it is in the DOM). is there a way to increase the height of that cell or get the inner grid on top or something?