Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My grid is blank??

Status
Not open for further replies.

Holm78

Programmer
Mar 5, 2002
60
SE
Hi

Here is the code for MyForm.init :

DIMENSION a_omr(1,3)
use MyTable
i=0
SCAN
i=i+1
a_omr(i,1) = column1
a_omr(i,2) = column2
a_omr(i,3) = column3
ENDSCAN
thisform.grid1.column4.header1.caption = a_omr(1,1)
thisform.grid1.column5.header2.caption = a_omr(2,1)
thisform.grid1.column6.header3.caption = a_omr(3,1)
thisform.grid1.refresh

When I run the form the grid is blank as a white paper not even colums and rows are showing. What could be the problem?
In my table that the dimension() is applying to I only have one row and tree columns so that the user can type in the header caption by him self.

If you need more info just ask.

thanks


//Holm
 
Try adding this:
[tt]
use MyTable
thisform.grid1.recordsource="MyTable"
[/tt]
Ian
 
But the info in the grid is based on another table
It is the headers I want to change based on the info in another table.

//Holm
 
Ahh...then you're opening the new table over the top of the old one. Change the beginning to this:
[tt]
DIMENSION a_omr(1,3)
use MyTable IN 0
SELECT MyTable

i=0
SCAN
...
[/tt]
Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top