The arrested men are Umang and Vinay, the police sources said. Both accused are residents of Haiderpur in north west Delhi.
The men, said sources, were arrested based on the CCTV footage from gate number 4 of the Rohini court in north Delhi where the shootout took place.
The shooting was the result of a rivalry of years between Jitender Gogi's gang and the rival "Tillu gang", the police said.
"Two men dressed as lawyers opened fire at Jitender Gogi inside the court.