Didi Gregorius tripled home the tiebreaking run in the 12th inning to lift the Arizona Diamondbacks over the San Diego Padres 2-1 on Tuesday night.