Grandparents have no specific legal rights in most states during a divorce. They can contest visitation if their biological child is dead and the surviving parent denies visitation.
Grandparent rights exist in some states but not in others. Google "grandparents rights" and your state to get information about what's happening in your state on this subject.