updating row indices when a middle row is deleted
Suppose there are four rows in the grid. If I delete the row no 2, the indices of row no 3 and 4 should get shifted to 2 and 3 respectively. So that the next row will be get added with index 4.
Please help me to figure this out.