Organ donation is when a person allows an organ of their own to be removed and transplanted to another person, legally, either by consent while the donor is alive or dead with the assent of the next of kin.
If the person has agreed to this in their lifetime then it is allowed.
This question has different views from the scholars and I would kindly ask you to write the office of your marja' or speak to one of his representatives regarding this.
Islam puts the respect of the human being as top priority. It is not allowed in Islam to disrespect the human being and his body even after death. Donating the organs after death is allowed only to save the sacred life of another human being.
Donating the human body for scientific research is good and can be even compulsory if there is no other human body which can suffice, but in this age, there ae thousands of non Muslims who are been taking part in such researches which meets the need.
It is not allowed to disrespect the human dead body unless there is no way to avoid it and it becomes the only way to serve other human beings' compulsory medical needs.