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