PDA

View Full Version : Columnwidth different in Studio and Application



TMike
25-Feb-2022, 05:32 AM
I deinstalled RC1, rebooted and installed RC2

Now the columnwidth are different in Studio and the application, see pictures.
It is a cDbCJGridColumn, and the piWidth for the Name-Column for example is 200.
What can I do?

Dennis Piccioni
25-Feb-2022, 11:22 AM
Hi Michael,

the Registry may still have the old column sizes for the application stored.

Try setting pbPreserveEnvironment in the oApplication object of the .src file to False and recompile. If this works, change it back to true and recompile and that should fix it.

Michael Mullan
25-Feb-2022, 12:58 PM
but you'd be better to increment the piLayoutVersion piLayoutBuild (spelling? not at work) property of the grid / view and that way the changes will propagate to the users who have the prior grid layout saved.

TMike
26-Feb-2022, 08:10 AM
Thanks to both of you, but that didn't work for me.

So I deinstalled the Studio, DR, Graphics Lib. etc., rebooted and deleted all directories and RegistryKeys I could find,
and installed all again. So now the layout is right again.

The former install I did via RDP with a high DPI Client, I think that has something to do with it.

Vincent Oorsprong
3-Mar-2022, 03:59 AM
Michael,

What is the setting for pbAutoColumnSizing (https://docs.dataaccess.com/dataflexhelp/#t=mergedProjects%2FVDFClassRef%2FcCJGrid-Property-pbAutoColumnSizing.htm) ?

TMike
5-Mar-2022, 09:39 AM
Vincent,

I always use: Set pbAutoColumnSizing to False
That is the first thing I toggle, when placing a CJGrid.