Set gridex container height according to actual data rows