Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preserving Grid Properties: Arnon is smart
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Preserving Grid Properties: Arnon is smart
Miscellaneous
Thread ID:
00011864
Message ID:
00011864
Views:
68
I think that Arnon recommended this several weeks ago, but I tried it today and was pleased. If you are having trouble with your grid maintaining all of its properties whenever you change its recordsource or regenerate the table/cursor upon which it is based, consider subclassing the grid and storing it in a VCX. Then,

ThisForm.RemoveObject("the grid object name")
Regenerate the underlying table any way you want.
Thisform.Addobject("same grid object name","grid class name")
grid.visible=.t.

This works well. Too bad there isn't a built-in capability like:

Grid.Connected=.F. && puts grid in Limbo
Rengerate underlying table
Grid.Connected=.T. && Takes grid out of Limbo
Next
Reply
Map
View

Click here to load this message in the networking platform