Two components inside a DataGrid cell

Another very simple question, I think.

I’m doing the data grid tutorial. At one point the tutorial adds a label and a texbox to be able to display and change the current value of the pagination.

I’m having problems adding the label and textbox both on the same line. It only accepts one at a time. I place the label, and then when I try to place the textbox it is automatically added to the next row in the container.

What is the trick here? I would like to place both elements side by side. Must be something simple that I’m overlooking.

Thanks!

Can you share a clone to the app your’re working on? In many cases it is much easier to debug if we can see an exact example of your working app.

If you click the :gear: icon the “share your source code with others”, we’ll get a clone we can inspect.

But, you could try adding a FlowPanel (or other containers), as the main element in the DataGrid cell in question. Then, add your label and text box inside of that container.

1 Like

Ok. I see. The FLOW PANEL did the trick. Still learning the basics!

Thanks! @alcampopiano

Glad to hear it. We’re all still learning, so you’re in good company.

A post was split to a new topic: Lost focus not triggered