Posted 28 September 2020, 6:59 pm EST
Hi,
Is there an easy way to style the scrollbar in a flexgrid? I have a dark style grid but the scrollbar is still light gray.
Thanks,
Hai
Forums Home / ComponentOne / WinForms Edition
Posted by: hdle on 28 September 2020, 6:59 pm EST
Posted 28 September 2020, 6:59 pm EST
Hi,
Is there an easy way to style the scrollbar in a flexgrid? I have a dark style grid but the scrollbar is still light gray.
Thanks,
Hai
Posted 30 September 2020, 4:18 pm EST
Hello,
You can use themes to change the scrollbar style. To design a theme use the C1ThemeDesigner (installed at: C:\Program Files (x86)\ComponentOne\Apps\v4.5.2 ).
Once you’ve created the theme you can apply it to the control using C1ThemeController. For details, please refer documentation: https://www.grapecity.com/componentone/docs/win/online-flexgrid/CustomTheme.html?highlight=theme%2C
Regards,
Posted 5 October 2020, 11:21 pm EST
Thanks for replying.
I already have a style custom object that handle the grid’s color style. I just cant do anything about the scroll bar. Is there an easy none theme approach to changing that?
Thanks,
Posted 7 October 2020, 1:36 am EST
Hello,
Please know that to modify the scrollbar style, the only way is through using theme. Even if you are using custom style objects for handling grid’s style, you still can use the theme by applying the theme before the styling. This way, the grid will have your styling through custom style objects and scroll bars styling according to the theme.
For code, please see attached application.
Hope this helps.
Regards,
ScrollBarCustom_Modified.zip