Hearts full-back Danny Grainger is facing up to three months on the sidelines after suffering a serious knee injury at the weekend.