Vaadin 8 Grid row index

Hi,

I need to add a column to my vaadin 8 grid showing the row index, a backend numbering sequence for me is impossible.

It would be nice to have an api inside the grid to add this column but unfortunately there isn’t.

Does anyone have any suggestions?

Thank you

The Grid Renderers Collection add-on has a RowIndexRenderer: https://vaadin.com/directory/component/grid-renderers-collection-for-vaadin7 (it works for Vaadin 8 as well despite the name)

Hi Olli,

Thanks for the reply, it was just what I was looking for…