If your grandfather has given you the mentioned amount of money as a gift while he was alive, then it is an income subject to khums, similar to other earnings. If the money was given to you as a trust that you will own after his death, then it is an inheritance that is not subject to khums.