It seems the RowIndex column and PhotoIndex column in the table would be independent of each other.
- PhotoIndex will be defined by your user when they re-arrange.
 - RowIndex you can set up as explained here.
 
It seems the RowIndex column and PhotoIndex column in the table would be independent of each other.