In Illinois, grandparents generally do not have an automatic right to visitation if the grandchild has been adopted by someone other than a stepparent or placed in foster care. However, the court may grant visitation rights to grandparents if it is deemed to be in the best interests of the child and if the grandparents can demonstrate a pre-existing relationship with the child that would be beneficial to maintain.