Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with grid column sizing.
Message
From
13/12/1999 18:08:42
 
 
To
13/12/1999 09:56:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00302690
Message ID:
00303047
Views:
21
Hi Brian,

>When adding new columns to a grid they look fine in the designer but when the app is run they are automatically resized and made much smaller. Does anyone know what causes this?

Do you modify the controlsource or anyhting at runtime? Just run through your columns and find out how wide it needs to be with this forumla:

iif(nFieldLength < 3, 20, nFieldLength * 7 + 4)

There are a couple ways to find the length of the field, I think FSize() is one function.
Previous
Reply
Map
View

Click here to load this message in the networking platform