The court does strongly consider what the parents want and look at why the parents don’t want you to visit with your grandchild. The court may look at what has happened between you and the parents. This is not enough, but it can play a part.
Each case is different. Talk to a lawyer if you are unsure about yours.