How can I hide some columns in relationship grid base on the some rule of parent item type

I need to hide  some columns in relationship grid base on the some rules of parent item type when form on populated.

Is it possible?