Mike.Sheen wrote:For the customised columns to work for you automatically, 3 requirements need to be met
- The form needs to Implement or inherit from a class that implements IJiwaForm
- The form should be created by the Form Factory
- In your code, after adding columns to the grid you need to invoke the SetupComplete() method
I *think* that's all you need to do. Let us know if you think you meet the above and it still isn't working.
Hmmm. So I have all that.
I'm inheriting from JiwaApplication.ProcessAction.UserInterface. Which implements IJiwaForm
The form is being opened from a menu item
I call SetupComplete on my grid after adding all my columns, and just before adding the event handlers for button click, cell click, cell changed, and sort.
So now that I'm off-site and looking a bit closer, it seems it is partly working. I'm not sure what I changed since the problem was reported to me, but originally, I was getting an error (Object reference not set to an instance of an object) when trying to customize the layout. Now it will now allow me to make changes.
I did have all my columns defaulting to a width of 0, which I've now changed.
The only problem now is that it seems my 'defaults' are saved somewhere with all my columns having a zero width, so if I 'turn off' custom columns (or reset to defaults in the customization dialog), they are all invisible. Where do I reset that?