Gray went on to win the general election for Mayor in the largely Democratic District .
He lost his re-election bid in the 2010 Democratic primary to Vincent C. Gray , who went on to win the general election for Mayor .