Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid refresh losing properties
Message
From
05/01/1999 17:14:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid refresh losing properties
Miscellaneous
Thread ID:
00172946
Message ID:
00172946
Views:
71
I have a problem when setting up the contents of a grid. I have a grid based on the contents of a cursor and all goes well until I try to re-order the records that are held in the cursor. When anything is done to the underlying grid, all information is totally lost, the grid goes blank and it just looks like a white square on the screen. The only way I have found to get things back the way they were is to add a method to the form that re-sets all the grids properties, column count, record source etc etc etc. This wouldnt be too bad but I am also losing any method code that is originally attatched to the grid. For example I have some code in the dblclick method of the grid column that opens up a sub-screen showing extra detail for the record that is double clicked on and there is no way to get this back into the grid when the underlying cursor is re-freshed.

I must be missing something obvious here but cant for the life of me figure out why all grid settings get lost when you change the underlying datasource.

Any ideas?????

Ashley Cottle
ABC Promotional Marketing
AshleyC@cosworth.infotrade.co.uk
Next
Reply
Map
View

Click here to load this message in the networking platform