An agricultural system that includes a cylinder and a rod that moves axially in and out of the cylinder to raise and lower a header. A cylinder lock system controls movement of the rod. The cylinder lock system includes a cap-end fixture that couples to the cylinder and receives the rod. A rod-end fixture couples to an end of the rod. The system includes a lock piston. The lock piston includes a protrusion. The lock piston rotates about the rod and selectively couples the protrusion to the cap-end fixture to lock and unlock the rod-end fixture to the cap-end fixture.