We find exact solutions describing bidirectional pulses propagating in fiber Bragg gratings. They are derived by solving the coupled-mode theory equations and are expressed in terms of products of modified Bessel functions with algebraic functions. Depending on the values of the two free parameters the general bidirectional X-wave solution can also take the form of a unidirectional pulse. We analyze the symmetries and the asymptotic properties of the solutions and also discuss about additional waveforms that are obtained by interference of more than one solutions. Depending on their parameters such pulses can create a sharp focus with high contrast.