Use the index variable with scope which covers both the for each Loop.
Second loop use While and not the for each row in datatable
In condition put indexvariable<Dt1.rowcount
Use assign activity to get the row like dt1.Rows(indexvariable)
Inside while adding assign activity to increase the index variable by 1.