An object of the present invention is to provide an X-ray device that can automatically choose an X-ray detector suitable for a purpose from usable X-ray detectors when there is a possibility that the usable X-ray detector is dynamically changed at timing of performing inspection, a control device and a control method for controlling the X-ray device, and a control program. For example, a flat panel X-ray detector (FPD) is chosen based on imaging order information such as a recommended detector size, and the corresponding FPD is chosen based on the usable FPD among these FPDs. Thus, in the case that there is a possibility that the usable FPD is dynamically changed at timing of imaging, the FPD suitable for the purpose of imaging order is automatically selected from the usable FPDs.