Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto size grid columns
Message
From
03/10/2004 06:09:14
Michael Ouellette
Australian Technical Services (VIC) Pty
Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to auto size grid columns
Miscellaneous
Thread ID:
00948300
Message ID:
00948300
Views:
73
How do I automatically size my grid columns so all the text fit?

I tried this but the width is too small:
with this
* replace default column header with custom header class
FOR liColIndex=1 TO .ColumnCount && loop through all grid columns
WITH .Columns(liColIndex)
.width = fsize(.Header1.Caption)
endwith
endfor
endwith

I'm guessing there must be a multiplier?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform