Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Headaches
Message
De
06/05/2015 18:07:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid Headaches
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01619483
Message ID:
01619483
Vues:
62
Hi All:

I put a grid on my form.

Two problems:

1. I can't set the color of the header. I drill down to 'Header1' in a particular column and set the fore color and backcolor to blue, with no effect. It works if I do it for the column, but I can't get it to work for the header.

2. How can I allow the user to enter values in the cells? The grid I'm creating is based on a sql statement, with one column. I then add columns in the init thus:
LOCAL lnColumns, i

lnColumns = RECCOUNT('curCustomers') + 1
this.grdOrders.ColumnCount = lnColumns

i = 0

SELECT curCustomers

SCAN

	i = i + 1
	lcColumn = 'Column' + ALLTRIM(STR(i + 1))

	this.grdOrders.&lcColumn..header1.Caption = desc
	this.grdOrders.&lcColumn..header1.Wordwrap = .t.
	this.grdOrders.&lcColumn..width = 75
	
ENDSCAN
I can't enter data in the first column or in any other column.

Thanks,

Yossi
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform