Column ordinal numbers in dataGrid

image
how can i create a column of ordinal numbers in the table dataGrid.

Take a look at this topic for one of possible solutions: