Posted 8 September 2017, 12:38 pm EST
I have implemented a derived spread control inheriting from FpSpread class. By overriding the OnCreateControl method and checking the DesignMode property, I initialize my custom control, adding a second sheet and setting some properties of the sheets such as column and row count, headers and so on. I ended up to this solution after reading a relative post in the forums and indeed, up to now, this worked as a charm. But after installing version 3 of the product that is not the case anymore. Without making any changes to the code implementation of my derived spread control, DesignMode property is now always false. At version 2.5, DesignMode was true when the control drops on a form and when I (re)build the project which suited my needs and this is the normal behavior for any control as I know. I am wondering if this is an issue on the new version of the product and/or whether I should use some other way of initializing my custom spread control to the state I need overriding some other method instead of OnCreateControl.
Thanks in advance.