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
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.