Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Dissapears
Message
 
To
07/05/2001 19:31:08
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:
00504527
Views:
17
Robert,
Fred was using "ZAP" in a generic sense. You don't use the ZAP command on the table, but simply set the grid recordsource to an empty string before making changes to the cursor. As he showed in his brief code, first you set the grid Recordsource to an empty string, update your data and then reset the recordsource to its original value.
thisform.oGrid.RecordSource = ""
*get your new data here
thisform.oGrid.RecordSource = "cursoralias"
With this technique there's no need to reset any of the column controlsource values, widths, header captions, etc.

HTH
Barbara


>Sorry Fred, this didn't work. I tried zapping the record source of the grid and then the record source of all of the columns.
>
>The second time, I get error message "Unknown Member Column1". It's like the Grid has lost its definition.
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform