Posted 3 November 2017, 3:27 am EST
Hi,
I am using Dev Express for look and feel (skins), ribbon and other controls but I am using flex grid for data display. Is it possible to apply dev express skin to the flex grid as well (any workaround)?
Forums Home / ComponentOne / WinForms Edition
Posted by: bilash.shrestha on 3 November 2017, 3:27 am EST
Posted 3 November 2017, 3:27 am EST
Hi,
I am using Dev Express for look and feel (skins), ribbon and other controls but I am using flex grid for data display. Is it possible to apply dev express skin to the flex grid as well (any workaround)?
Posted 3 November 2017, 4:17 am EST
Hi,
C1FlexGrid supports theming using the C1Theme component.
On your form, place a C1ThemeController.
Then, apply the theme using this code snippet:
this.c1ThemeController.Theme = "MyTheme";
C1Theme theme = C1ThemeController.GetThemeByName(this.c1ThemeControllerTheme, true));
C1ThemeController.ApplyThemeToControlTree(myFlexGrid, theme);
The theme “MyTheme” can be created using the C1ThemeDesigner found in “C:\Program Files (x86)\ComponentOne\Apps\v4.0\C1ThemeDesigner.4.exe”. Probably, the built in themes won’t match your requirements, so you would have to create a custom theme.
Hope this helps
Wolfgang