Essential GridControl offers a wide range of support for the appearance of the Grid. This sample illustrates the application of different skins by using the new color scheme ColorStyles in the Essential GridControl. You will be able to switch between themes, while running this sample.
Features:
New color scheme property ColorStyles is used.
Styles can be set to the GridControl by assigning a ColorStyles enumeration value to the ColorStyles property.
The following sample code sets an Office2010Black skin theme to the Essential GridControl by using ColorStyles.
gridControl1.ColorStyles = Syncfusion.Windows.Forms.ColorStyles.Office2010Black;
The Colorstyles property will be enable only when the EnableLegacyStyle is False, by default the EnableLegacyStyle is True. The following sample code sets the LegacyStyle as false to apply the ColorStylesskins.
gridControl1.Model.EnableLegacyStyle = false;
Note
To enable the ColorStyles property, the LegacyStyle must be false.
ColorStyles property is similar to the GridVisualStyles property, but it provides support to change the scrollbars corresponding to the skins applied, without any explicit code to change the scrollbars.