How to edit the repeating group when this edit icon is click?

what to do if I click the edit button in any rows, then the dropdown title will be selected in the dropdown and the updating row # shows and make the update button to update the repeating group, just like that on the picture?