Please, please, please do WHATEVER it takes to keep your precious grandchild out of your daughter's dysfunctional and dangerous world. If it means reporting your daughter's activity or her boyfriend's to the police and child authorites, than BY ALL MEANS do it! You owe it to your grandchild. Your grandchild's safety sould be TOP PRIORITY at all times.
Your daughter is an adult making foolish, sad, dangerous choices. You cannot help her by doing anything for her, but you can enable her. NEVER let her expose your granddaughter to her boyfriends, Keep those boyfriends far away from your home. File restraining orders against them, if you must.
I would not allow your daughter in your own home, if I were you. She will never get help for herself as long as you are giving her a roof over her head. You are coddling her and enabling her and NOT expecting anything from her. You accept her dangerous choices. You are, sadly, enabling her. She has no reason to change her life for the better.
Get your granddaughter in couseling. Get your daughter out of your home. Keep the boyfriends away. If you must take legal action to do all of this, do it.
Your situation is indeed sad, but PLEASE do not give up your control and power. For the sake of your innocent grandchild AND FOR THE SAKE OF YOUR DAUGHTER, do not play victim. Be assertive and in control at all times. Find whatever community and private and judicial resources you need to protect your grandchild (and that may mean protecting the child from your daughter).
God bless you. Stay strong so you can fight for that precious child who has no say in her mother's choices. YOU CAN DO THIS!!!