Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown grid columns
Message
From
03/06/2008 08:49:37
 
 
To
03/06/2008 08:08:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01321252
Message ID:
01321262
Views:
11
Hi,

You can use the grid.SetAll() method.
(Or loop thru the members collection):
Local loColumn
For Each loColumn in This.Columns
&& "this" assumes you are in a method of the grid itself, e.g. Init()
    loColumn.Format = ...
Next
hth
-Stefan



>Dear Experts
>
>There is a grid with data, but I do not know the number of columns.
>The columns are more than Three in every case.
>Some times columns are 5 and some times 8.
>The number of columns may be different every time.
>
>I want to apply following FORMAT on Column Headers
>
>hearheight=30
>font=bold
>alighnment=2
>
>Also I want to apply following FORMAT Column 3 to last column
>
>format=z
>inputmask=99,99,999.99
>
>The grid show data from a cursor as
>thisform.grdtable.recordsource ="TRY2"
>
>Please help
Previous
Reply
Map
View

Click here to load this message in the networking platform