PROBLEM TO BE SOLVED: To set a driving method for an imaging part depending on a connection state between an X-ray generating part and an X-ray imaging part.SOLUTION: An X-ray imaging apparatus includes an X-ray generating part that generates an X-ray, and an X-ray imaging part that has an imaging part for taking an X-ray image. The X-ray imaging part comprises a determination part that determines whether or not communication for synchronizing X-ray generation timing and driving timing of the X-ray imaging part with each other is performed between the X-ray generating part and the X-ray imaging part, and a setting part for setting a driving method for the imaging part depending on determination.