show row number in grid

Hello all,

Is there a possibility/add-on to show in the first column the row number?

Similar to this:

Thansk for the information!

Not as in the screenshot where the rownum has different rendering than the other columns.

But you can always make a
generated column
and make that column your first column. You can use a renderer to give that column a slightly different look than the other columns.

But the concept of rownums are tricky and IMHO redundant: You’ll need to think long and hard about what it’s meant to express. What about sorting ? What about paging ? etc.


Hi, have a look at
Vaadin Spreadsheet
. It looks exactly as your screenshot and you can add Vaadin components into the cells. Check out the demo

Oh, yes. This is a good idea to test! :slight_smile: