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:
01405499
Vues:
127
>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
					thisform.g1.HeaderHeight = 	40
					thisform.g1.Column.Header.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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform