How to generate an identifier for each Purchase Order Line

Hi! I´m constructing an editable grid in which the user can add new rows (purchase order lines). I would like to add a column with the number of the row as an "identifier" for each PO line, something like this:

So my question is, how can I configure the text field to auto-generate values from 1 to infinite after the user adds a new row?

Thanks for your time!

  Discussion posts and replies are publicly visible

Parents Reply Children