I have a such DataGrid
as you can see on screenshot I have a column Path to clip folder
and below 3 rows, I would like to add at the left row numbers (like 1, 2, 3) for each row.
I found this solution
https://stackoverflow.com/a/9581709/5709159
But as far as I understand it will add numbers like hardcode, and if I delete (for example) row 2 I will see row numbers like 1 and 3...
Question is - is there a way that DataGrid
numerate each row automatically?