Is touching a non-Mahram woman invalidates person's ablution?
Touching non-Mahram woman is prohibited, and according to the Shafiee's, it invalidates the ablution. And Allah Knows Best.
How are gaps filled during congregational prayer?
A praying person is allowed to take two steps in order to fill the gap in the row ahead. If the distance was long and requires much movement, then it is impermissible for one to move to fill it because much consecutive movement (three movements) during prayer invalidates it.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
My father passed away before my grandfather. Am I entitled to any share of my grandfather`s inheritance?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
According to Islamic courts, you are entitled to what is called obligatory bequest (The distribution of estate to grandchildren who has either lost a parent before the death of the grandparents). Therefore, if your grandfather left such bequest for you, then take that share or else it is more prudent to take nothing. And Allah The Almighty Knows Best.