In 1916, Gainer was a delegate to the 1916 Democratic National Convention. By 1918, Gainer was so broadly popular with both Republicans and Democrats that he ran for the mayor's office unopposed. He was said to be one of the most popular public officials who ever held office in the state.