Category / Section
How to apply themes to the SfDataGrid by using the SfSkinManager?
1 min read
You can apply different themes to the SfDataGrid by using the SetVisualStyle method in the SfSkinManager.
C#
SfSkinManager.SetVisualStyle(grid, VisualStyles.Blend);
The following assemblies should be included additionally for applying VisualStyles.
- Syncfusion.SfSkinManager.WPF
- Syncfusion.Themes.Blend.WPF. To apply Metro theme, you have to attach Syncfusion.Themes.Metro.WPF dll and so on.
The value of the Copy Local must also be set to true for theming assemblies, but it cannot retrieve the value from GAC.
The following screenshot displays the reference of the enabled Copy Local.
Figure 1: Enable Copy Local value True for Theme assembly
Sample Link: