Gregg's scholarly interests included botany, ornithology, and astronomy. In 1847 he was appointed major in Milledge L. Bonham’s regiment of volunteers for the Mexican War, but this unit failed to reach Mexico in time to participate in any major battles. He was a member of the Southern Rights Convention of 1852, and in the late 1850s he advocated reopening the African slave trade.