Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the default width on all columns in a grid
Message
From
23/08/2005 09:58:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042887
Message ID:
01042896
Views:
27
Neil
With Thisform.grdMyGrid
  For I = 1 to .ColumnCount
    .Columns( I).Width = 200
  EndFor
EndWith
Of course, you can always set them visually in the form designer.

Your servant

Terry

>I have a grid on a form which is populated by a cursor. Is there anyway that I can set all columns in the grid to a default width? Bare in mind the cursor can be populated by a query on another table which could have more columns.
>
>Many Thanks
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform