Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Column Headers
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01502624
Message ID:
01502629
Views:
43
>Is there a way to change a grid Column Headers. it defaults to Field Names but I want to change it.
>Want to loop through table and change as follows:
>
>Afields(MyArray,'MyAlias')
>For x = 1 to len(MyArray)
> Thisform.Grid1.Header(x) = GetMyhead(x)
>Endfor
>
>and be able to change the header of each column, to include for instance a space and show this in each column
>
>Tia
>Gerard

You may want to change it by looping through all grid's columns, e.g.
   for each loColumn in thi s.Columns
       lcField = juststem(loColumn.ControlSource)
       loColumn.Header1.Caption = GetMyHead(m.lcField)
 next
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform