Hide child grid view when parent tab is not the active tab?

I have a series of 3 tab views. Only one of the tab views has a related child view. This tab is #3 in the sequence of tabs. When I click on #3, the related child grid view shows, but when I click on the other two tabs, #1 or #2 in the sequence, the #3 child grid view is still visible. How do I hide the child grid view for #3 when tabs #1 or #2 are selected?
1 person has
this question