X is deceased and has (a) 3 surviving sons, (b) 2 deceased sons (c) 3 deceased daughters. All (a) (b) & (c) have children as well. Some sons and daughters and one only daughters. What is the Islamic ruling of division?
The persons who have right in inheritance in Islam are in degrees; the first degree is for the parents of the deceased and the sons and daughters of the deceased. If any son or daughter are alive when the deceased passed away, no inheritance for grand sons or grand daughters.
In your question, the inheritance goes to the living sons and daughters, and no right of inheritance for the grandchildren. Grandchildren would have share in the inheritance if the deceased did not leave any living son or daughter.
Wassalam.