How to set the Header cells to a different color in the child grid than the parent grid of Blazor DataGrid?

Answer:

At present, there is no direct support for `HeaderCellInfo` event to customize the header cells. So, we suggest you to customize the header back color of the Child Grid through the below style customization,

<SfGrid ID="ParentGrid" DataSource="@Employees">

<GridTemplates>

<DetailTemplate>

@{

var employee = (context as EmployeeData);

ID="ChildGrid" TValue="Order" Query="@GetEmployeesQuery(employee)" AllowPaging="true">

}

DetailTemplate>

GridTemplates>

SfGrid>


Loader.
Up arrow icon