Posted 9 March 2021, 9:45 pm EST
Hello,
I Have Multiple Flexgrids, that use custom styles, that are the same.
So my Question is, if I can create the style in the Parent class and use for the different flexgrids.
Thanks
Forums Home / ComponentOne / General Discussion
Posted by: lars.seehaus on 9 March 2021, 9:45 pm EST
Posted 9 March 2021, 9:45 pm EST
Hello,
I Have Multiple Flexgrids, that use custom styles, that are the same.
So my Question is, if I can create the style in the Parent class and use for the different flexgrids.
Thanks
Posted 10 March 2021, 7:31 pm EST
Hi,
Yes, You can create an extended class of FlexGrid and then add the styles in the constructor, so that when you will create a flex grid using this class, the styles will be available to you. Please refer to the sample attached.
Regards.
Avnish
FlexGridStyles.zip