Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Headaches
Message
From
06/05/2015 18:07:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid Headaches
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01619483
Message ID:
01619483
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform