As far as I know, the Ca2+ ions coat the cells providing a net +ve charge which facilitates the binding of DNA. Also this coating makes the cell wall/membrane less stable allowing the DNA to be taken into the cells following heat shock. Tim