How to add Numbering column in table

Hello,

Trying to add numbering column to a table is not really clear.
how can that be achieved do I have to create the table programmatically or Cuba provide a way to do it?
image
Thanks

Hi.
Check this topic Numbering for Composition Items (such as OrderLines in Order) - #3 от пользователя krivopustov

Here is the demo project. See OrderEdit.java controller.