Hiding/showing columns in relationship grid based on field values

How can I hide/show columns in the relationship grid based on the changes in the dropdown box of the parent form?