# Setting up a master-detail DataGrid with Infinite Table for React

Published: 2024-03-06  
Author: admin  
Tags: master-detail

Canonical page: https://infinite-table.com/blog/2024/03/06/setting-up-master-detail-datagrid

We recently [announced the release of master-detail in the Infinite React DataGrid](https://infinite-table.com/blog/2024/02/26/master-detail-now-available-in-react-datagrid.md), so we also made a video tutorial to follow along, if video is your preferred learning method.

This shows the very basics of configuring the Infinite React DataGrid with master-detail, and it's a great starting point for more advanced configurations.

[Watch video](https://www.youtube.com/watch?v=5-T2tSEM96I)

You can find the full source code for the tutorial in the code sandbox below.

This example is two levels deep, but the Infinite React DataGrid supports any number of levels of master-detail.

[CodeSandbox demo](https://codesandbox.io/s/elegant-feynman-y3hfcx)
