 During the Battle of Gettysburg, Graham's brigade defended the Union position along the Emmitsburg Road, particularly the area of the Sherfy peach orchard.He was wounded in the hip and shoulders on July 2 and taken prisoner by the Confederates.He was sent to a prison camp in Richmond until he was exchanged (for James L. Kemper) on September 19, 1863.