Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi line header in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01405394
Message ID:
01405502
Vues:
72
>>Set Grid.Column.Header.WordWrap = .T.. Don't forget to increase the Grid HeaderHeight property.
>>Also use CHR(10) or CHR(13)+CHR(10) to force new line
>>
>>>I there a way to have header caption in grid be multi line. I am do the following code manually:'
>>>
>>>
>>>thisform.grid1.column4.header1.caption = "Qty" +CHR(13)+ " Delivered"
>>>
>>>
>>>but that doesn't work. Thanks in advance.
>>>
>>>
>>>Nick
>
>Ok I tried the wordwrap but it keeps getting an error saying
>
>
>Unknown member COLUMN"
>
>
>I am trying to set this at run time. After reading the help it said that this property could be set at design or run time.
>
>
>WITH .g1	&& .g1 is a grid
>					.HeaderHeight = 	40
>					.Column1.Header1.WordWrap = .T.
>					.column1.header1.caption = "Order" + CHR(10)+CHR(13)+"Number"
> 					.column1.header1.ToolTipText = 'The order number'		
>					.column1.width = 40
>					.column1.Enabled = .F.
>					.column1.Text1.DisabledBackColor 	= RGB(255,255,255)
>					.column1.Text1.DisabledForeColor = RGB(0,0,0)
>					.column1.ControlSource = "crs_grid2.crsirorderno"
>
>
>I didn't see the "Column" in the intelisense either.
>
>thanks
>Nick

It should be Column1 (or the name you gave your column)
thisform.g1.Column1.Header1.WordWrap = .T.
You can also do
thisform.g1.SetAll('WordWrap',.t.) && to set this property to true for all columns of the grid.
See also changes inside your code.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform