Grandparents may have legal rights to visitation or custody of their grandchildren in certain family law cases, particularly if it is in the best interest of the child. However, these rights vary by state and are subject to specific legal criteria.