It is not possible to nest data grids. However, it is possible to nest list view (or template grids) and use css to make them look like a data grid.
You can find more details in this post: https://www.notion.so/gajduk/The-road-to-responsive-tables-in-Mendix-8a2f45ff2c2f49018ea4ca9812b42301