1. If one parent has a Shanghai hukou, his newborn can declare birth registration. If both parents are registered in other places, newborns generally can't settle under the names of grandparents.
2. The granddaughter's father was originally a Shanghai hukou, and the permanent residence in this city was cancelled, or the granddaughter's father was originally a Shanghai hukou and later moved into a student collective household or a postdoctoral workstation collective household. Granddaughters can declare their birth registration to their grandparents' permanent residence in this city.
Therefore, whether the granddaughter can settle in Shanghai depends on the specific situation. If the granddaughter's father was originally registered in Shanghai, then the granddaughter may be allowed to declare birth registration at the place where her grandparents are registered. If the granddaughter's parents are registered in other places, then the granddaughter can't generally settle down in the name of grandparents.