How can i hide a subgrid if it empty? I tried this solution and this but no luck.
Look at the old answer. It seems be exactly what you need.