Hi Hassan,
Greetings from Syncfusion support.
Based on this scenario, we suggest you to set same DataSource variable for both parent and child grids. And define the columns which you want to display in parent and child grid. Define first 5 columns in parent grid and then define remaining columns in child grid.
Please refer the codes below,
<SfGrid DataSource="@Orders">
<GridTemplates>
<DetailTemplate>
@{ @*Define remaining columns in child grid*@
<SfGrid DataSource="@Orders">
<GridColumns>
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order Date" Format="d" Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
...
</GridColumns>
</SfGrid>
}
</DetailTemplate>
</GridTemplates>
<GridColumns> @*Define fist 5 columns in parent grid*@
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order ID" Freeze="FreezeDirection.Left" TextAlign="TextAlign.Right" Width="120"></GridColumn>
...
</GridColumns>
</SfGrid>
|
Please get back to us if you need further assistance.
Regards,
Renjith R