How to validate a hidden grid layout on submit

We have a button layout with three buttons to create a tabbed layout kind of look and feel. Based on the selected button, we need to display a grid layout with few mandatory fields. When I submit only the current section which is displayed gets validated, because other two grids are hidden. How to validate all three grids even when it is hidden. 

  Discussion posts and replies are publicly visible