So provide a two way mapping between the id and the name. Then you can see which index in one combobox corresponds to the same item in the other and select the appropriate item.