On a property of Gram's determinant