Steve60007
Technical User
Building an app in VFP after not using it for years I'm surprised it's coming along so
well, but I ran into probably really simple a little problem:
I'm repopulating a cursor and then a grid based on pageframe selection, initially the grid
sizes everything correctly (from the grid's init event), but as soon as a page is chosen it shrinks all the columns down to
the longest field of data in that column.
I tried specifying each column width both after the select statement (throws an error because it
doesnt exist yet), and after the recordsource (didn't do anything)
SELECT name, address, amount,cc, status FROM orders WHERE status = "In Store" INTO CURSOR activord
thisform.grid1.RecordSourceType=1
thisform.grid1.RecordSource = [activord]
I initially populate the grid from the grid's init event, then from each pages activate event. I already tried
recalling the init event with each page and changed select statement, but it didn't work.
Any idea how I can keep the initial column formatting after page changes?
well, but I ran into probably really simple a little problem:
I'm repopulating a cursor and then a grid based on pageframe selection, initially the grid
sizes everything correctly (from the grid's init event), but as soon as a page is chosen it shrinks all the columns down to
the longest field of data in that column.
I tried specifying each column width both after the select statement (throws an error because it
doesnt exist yet), and after the recordsource (didn't do anything)
SELECT name, address, amount,cc, status FROM orders WHERE status = "In Store" INTO CURSOR activord
thisform.grid1.RecordSourceType=1
thisform.grid1.RecordSource = [activord]
I initially populate the grid from the grid's init event, then from each pages activate event. I already tried
recalling the init event with each page and changed select statement, but it didn't work.
Any idea how I can keep the initial column formatting after page changes?