A way to find out would be to use chrome inspector to inspect the container and turn off the CSS properties on the container 1 by 1. When the datagrid collapses, you should know which CSS property is responsible for fixing the overflow.
https://designtlc.com/use-chrome-inspector-edit-website-css/