How to customize the color of metro theme in WinForms GridControl?
Customize the metro style
WinForms GridControl has default colors for Metro theme. You can customize the metro theme colors through GridMetroColors by using SetMetroStyle method.
The following
code example explains the same.
//VisualStyles and themes
GridMetroColors theme = new GridMetroColors();
//changes the header color on mouse hovering.
theme.HeaderColor.HoverColor = Color.CadetBlue;
//sets the header color on normal state.
theme.HeaderColor.NormalColor = Color.PowderBlue;
//sets the BottomBorderColor.
theme.HeaderBottomBorderColor = Color.Red;
//sets the headertextcolor.
theme.HeaderTextColor.NormalTextColor = Color.Navy;
//changes the header text color on mouse hovering.
theme.HeaderTextColor.HoverTextColor = Color.GhostWhite;
//Applys the customized theme to the gridControl metrostyle.
this.gridControl1.SetMetroStyle(theme);'VisualStyles and themes
Dim theme As New GridMetroColors()
'changes the header color on mouse hovering.
theme.HeaderColor.HoverColor = Color.CadetBlue
'sets the header color on normal state.
theme.HeaderColor.NormalColor = Color.PowderBlue
'sets the BottomBorderColor.
theme.HeaderBottomBorderColor = Color.Red
'sets the headertextcolor.
theme.HeaderTextColor.NormalTextColor = Color.Navy
'changes the header text color on mouse hovering.
theme.HeaderTextColor.HoverTextColor = Color.GhostWhite
'Applys the customized theme to the gridControl metrostyle.
Me.gridControl1.SetMetroStyle(theme)The following
screenshot displays the customized metro style.

Figure 1: Customized metro style
Note:
The same procedure is applicable for GridDataBoundGrid.
Conclusion
I hope you enjoyed learning how to customize the color of metro theme in WinForms GridControl.
You can refer to WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!