I just want to display row numbers in the left-most column of my DataGrid
. Is there some attribute to do this?
Keep in mind, this isn't a primary key for my table. I don't want these row numbers to move with their rows when a column is sorted. I basically want a running count. It doesn't even need to have a header.
Using attached properties, full source here.
Xaml: