>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