Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Dissapears
Message
From
07/05/2001 18:12:14
 
 
To
07/05/2001 17:32:19
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00504452
Message ID:
00504466
Views:
15
>A form has a pageframe and on one of the pages, a grid is defined. The record source for this grid is a cursor which is initialized from a table and then commands are issued to define the control source for the 5 grid columns. (thisform.pgfbase1.page6.grdbase1.column1.controlsource = "temp.field1", etc.)
>
>This works fine the FIRST time the page is activated for a particular record. However, after that record is saved and another record is selected, the grid as originally designed dissapears and a grid is displayed that shows all columns of the record even though the above command executes as before.
>
>Anyone have any ideas? This is driving me crazy.

Zap the RecordSource of the grid before you get the new info:

thisform.oGrid.RecordSource = ""
*get your new data here
thisform.oGrid.RecordSource = "cursoralias"
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform