A relation between Gram and Wronsky determinants