The Background color for Header row can be changed by setting the SfDataGrid.HeaderStyle property for DetailsView Grid. When defining SfDataGrid.DetailsViewDefinition, you can customize the property setting of DetailsView Grid by defining GridViewDefinition.DataGrid.HeaderStyle.
In the following code example, GridHeaderCellControl style is customized for DetailsViewGrid via GridViewDefinition.DataGrid.
When you set AutoGenerateRelations as “True”, you can customize the DetailsView Grid via the SfDataGrid.AutoGenerateRelations event.
The HeaderStyle of DetailsView is customized when AutoGenerateColumns is set to “True”.
Here, you can see that the Header’s Background color has been changed for DetailsView Grid.
Figure 1: Header Background color changed
This page will automatically be redirected to the sign-in page in 10 seconds.