Blazor Master Detail Grid Example

DataGrid / Relational Binding / Master Detail Grid

This sample demonstrates the usage of DataGrid to visualize details of record in another DataGrid in master and detail manner. By simply clicking the master DataGrid row, the detail DataGrid will be populated with the corresponding data.

Master Grid
Showing orders of Customer:

The Master-Detail DataGrid is a use case scenario in which the details of a Master DataGrid record are displayed in a separate DataGrid (Detail DataGrid) by clicking on the specific row.

The steps to achieve this scenario is as follows,

  • Get the selected record of Master DataGrid in the RowSelected event.
  • Filter the data based on the selected record and bind the result to the Detail DataGrid DataSource property.

In this demo, simply click the row in master DataGrid, which shows the details in another(Detail) DataGrid.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE