Compassionate leave

Am i eligible for 3 days compassionate leave if my grandfather dies in pakistan

Depends on your company's policy. 

But this is what it says in the Labor law:

a- The worker shall be entitled to a three day leave on full pay in the following cases:

In the event of his marriage for one time;
In the event of the death of his/her spouse or any of his/her relatives to the fourth degree of kin;
In the case of death of his/her spouse's relatives to the second degree of kin.